compile error with 3.10.5 #3559
-
I have 3.10.5 (just downloaded it), Visual studio 2019. Trying to build for 32 bits. My code looks like this #undef max I get this 1>C:\Users\bloomscj\source\repos\RESTProject2\nlohmann\detail\meta\type_traits.hpp(641,101): error C2220: the following warning is treated as an error it even worse if I remove the first two lines. I've tried C++ 14, 17, and 20. Didn't make a difference. Happens for both debug and release builds I've noticed that others had similar problems, but they are all reported as fixed in 3.10.5 Not sure what else to try, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
nvm I had an automatic inclusion of the header file. Evidently, including <curl/curl.h> causes the problem. making sure that are before #include <curl/curl.h> makes the problem go away |
Beta Was this translation helpful? Give feedback.
nvm
I had an automatic inclusion of the header file. Evidently, including <curl/curl.h> causes the problem.
making sure that
#undef max
#define NOMINMAX
are before #include <curl/curl.h> makes the problem go away