Skip to content

Needs to add -Wno-missing-template-arg-list-after-template-kw to compile with clang19 #221

@IvanNSBS

Description

@IvanNSBS

When compiling with clangd 19, this error happens:

In file included from /home/ivansbs/ivan/test_reflect/src/main.cpp:5: In file included from /home/ivansbs/ivan/test_reflect/reflect-cpp/include/rfl.hpp:32: In file included from /home/ivansbs/ivan/test_reflect/reflect-cpp/include/rfl/Pattern.hpp:4: In file included from /home/ivansbs/ivan/test_reflect/reflect-cpp/include/rfl/PatternValidator.hpp:9: /home/ivansbs/ivan/test_reflect/reflect-cpp/include/rfl/thirdparty/ctre.hpp:5439:27: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 5439 | return Method::template exec();

and i need to add -Wno-missing-template-arg-list-after-template-kw to be able to compile with it. This issue does not happen when compiling with gcc.
Using CMake and Ninja Build as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions