getml / reflect-cpp

A C++20 library for fast serialization, deserialization and validation using reflection. Supports JSON, BSON, CBOR, flexbuffers, msgpack, TOML, XML, YAML / msgpack.org[C++20]
https://getml.github.io/reflect-cpp/
MIT License
1.05k stars 90 forks source link

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

Open IvanNSBS opened 1 week ago

IvanNSBS commented 1 week ago

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.

liuzicheng1987 commented 1 week ago

Ok, thanks for flagging this.