nlohmann::json namespace error #4720
-
Hello. I installed nlohmann with vcpkg and configured the project in Visual Studio Community (includes and linkers alike). It seems all good, since the project can find the included headers (such as #include <nlohmann/json.hpp>) and all. However, the nlohmann::json raises a E0276 error: C++ name followed by '::' must be a class or namespace name. I also tried to download and include only the json header itself, but the error persists. Any ideas about what to do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What is the line there? Does it involve the words |
Beta Was this translation helpful? Give feedback.
What is the line there? Does it involve the words
new
,min
, ormax
? Those are the things most often#define
d in another header that has been included beforenlohmann/json.hpp
.