You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main.cpp:24:37: error: unknown type name 's'
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Foo, s)
^ (the '^' appears under the 's')
main.cpp:26:1: error: expected function body after function declarator
Compiled as so:
clang++ -std=c++17 main.cpp -o build/main -O3
~/projects/jsontest clang --version
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.5.0
Thread model: posix
What is the issue you have?
Clang reports:
with this code:
(in the same namespace)
more specifically:
Compiled as so:
clang++ -std=c++17 main.cpp -o build/main -O3
Which version of the library did you use?
3.8.0
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: