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
Microsoft Visual Studio Community 2015
Version 14.0.24720.00 Update 1
All I have done is added #include "json.hpp" to my source file.
c:\path\to\json.hpp(887): error C2100: illegal indirection
c:\path\to\json.hpp(898): note: see reference to class template instantiation 'nlohmann::detail::static_constnlohmann::detail::to_json_fn' being compiled
@glennra The tests at AppVeyor work with MSVC 14.0.25420.1 (see https://ci.appveyor.com/project/nlohmann/json for detailed output). I'm not sure about the differences to the version you are using, but @brunohkbx seems to have fixed the issue by updating.
Activity
nlohmann commentedon Feb 22, 2017
This is strange, because the project compiles with AppVeyor without problems:
What is the exact error message? What compilation flags are you using?
brunohkbx commentedon Feb 23, 2017
I just updated my VS2015 and its working fine.
Thanks!
glennra commentedon Mar 24, 2017
I have this issue too. Using 2.1.1.
Microsoft Visual Studio Community 2015
Version 14.0.24720.00 Update 1
All I have done is added #include "json.hpp" to my source file.
c:\path\to\json.hpp(887): error C2100: illegal indirection
c:\path\to\json.hpp(898): note: see reference to class template instantiation 'nlohmann::detail::static_constnlohmann::detail::to_json_fn' being compiled
Compilation flags generated by CMake:
/Yu"StdAfx.h" /GS /TP /W3 /Zc:wchar_t /I"C:\Boost\include\boost-1_60" /Zi /Gm- /Od /Ob0 /Fd"MyLib.dir\Debug\MyLib.pdb" /Zc:inline /fp:precise /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "BOOST_LOG_DYN_LINK" /D "BOOST_USE_WINAPI_VERSION=0x0601" /D "CMAKE_INTDIR="Debug"" /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope /RTC1 /GR /Gd /MDd /Fa"Debug/" /EHsc /nologo /Fo"MyLib.dir\Debug" /Fp"MyLib.dir\Debug\MyLib.pch"
nlohmann commentedon Mar 24, 2017
@glennra The tests at AppVeyor work with MSVC 14.0.25420.1 (see https://ci.appveyor.com/project/nlohmann/json for detailed output). I'm not sure about the differences to the version you are using, but @brunohkbx seems to have fixed the issue by updating.
glennra commentedon Mar 26, 2017
Thanks. It works with:
Microsoft Visual Studio Community 2015
Version 14.0.25431.01 Update 3
VS usually automatically offers updates but in this case it had not done that so I had to manually download and run the updater.
Hafnernuss commentedon Aug 16, 2017
I can confirm this, by updating from Update 1 to Update 3 everything works fine.
nlohmann commentedon Aug 16, 2017
Thanks for reporting!