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
Hmm I'm having the same issue (latest version, got it directly from the file in the repo). Seems to be happening in this line static constexpr T value{};, line 1136.
Also seems to happen on version 2.1.0, but no issues on version 2.0.10
Will try g++ with the 3 versions and see if there is any issue, reporting soon!
2.0.10 : No issues on g++. No issues on Visual Studio 2.1.0: No issues on g++. Illegal indirection on Visual Studio 2.1.1 No issues on g++. Illegal indirection on Visual Studio
I don't have Visual Studio 2017 so won't be able to test with it
Activity
gregmarr commentedon Apr 5, 2017
What release/commit are you using?
jacobjz commentedon Apr 5, 2017
version 2.1.1
gregmarr commentedon Apr 5, 2017
That's very strange. This is line 1136 in that release:
What is line 1136 in your
json.hpp?nlohmann commentedon Apr 6, 2017
Could you remove all headers but
json.hppand have yourmainjust consist ofjson j;?jacobjz commentedon Apr 6, 2017
I've downloader version 2.0.5 and it works. :)
nlohmann commentedon Apr 6, 2017
That's strange. Which version of MSVC is this?
jacobjz commentedon Apr 6, 2017
nlohmann commentedon Apr 6, 2017
As of version 2.1.0, you can convert any type from/to JSON, see https://github.com/nlohmann/json#arbitrary-types-conversions.
MSVC 2015 is supported, and we use it with AppVeyor, see https://github.com/nlohmann/json#supported-compilers.
jacobjz commentedon Apr 6, 2017
Ok, i'll post the piece of code where this error occurs tonight and chceck AppVeyor as well:)
nlohmann commentedon Apr 10, 2017
Any news here?
tatjam commentedon Apr 13, 2017
Hmm I'm having the same issue (latest version, got it directly from the file in the repo). Seems to be happening in this line
static constexpr T value{};, line 1136.tatjam commentedon Apr 13, 2017
Also seems to happen on version 2.1.0, but no issues on version 2.0.10
Will try g++ with the 3 versions and see if there is any issue, reporting soon!
2.0.10 : No issues on g++. No issues on Visual Studio
2.1.0: No issues on g++. Illegal indirection on Visual Studio
2.1.1 No issues on g++. Illegal indirection on Visual Studio
I don't have Visual Studio 2017 so won't be able to test with it
nlohmann commentedon Apr 13, 2017
Could you please tell me the exact versions of your MSVC. The library is known to work with the following versions:
These exact versions are used by AppVeyor where the test suite can be compiled and executed without errors.
tatjam commentedon Apr 14, 2017
EDIT: Nevermind that's is not the version my bad... How can i get the version?
nlohmann commentedon Apr 22, 2017
In Visual Studio, the Tab 'Help'-> 'About Microsoft Visual Studio' should give you the desired infos. (from http://stackoverflow.com/a/5089489/266378).
nlohmann commentedon Apr 22, 2017
Any news on this?
tatjam commentedon Apr 22, 2017
Version 14.0.24720.00 Update 1Indeed that's older than what you use, I suppose they had no full support for contextpr?
nlohmann commentedon Apr 22, 2017
Right. Sorry, but we can't do anything about that.
cfogelklou commentedon Apr 25, 2017
I'm getting this error in MSVC2017, same line - 1136, so definitely newer than MSVC2015. Not sure if it should be closed?
nlohmann commentedon Apr 25, 2017
Hi @cfogelklou, what is the exact version you are using?
We are using Microsoft (R) Build Engine version 15.1.548.43366 with AppVeyor, see https://ci.appveyor.com/project/nlohmann/json/build/1932 for the latest build which succeeds on MSVC 2017 as well.
xgdgsc commentedon May 11, 2017
I also get this with VS2015
Version 14.0.24720.00 Update 1. I will update to see.nlohmann commentedon May 11, 2017
I think this version is not supported. The code is known to run with Microsoft Visual C++ 2015 / Build Tools 14.0.25123.0 (and possibly later), see https://github.com/nlohmann/json#supported-compilers.