Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile-Error C2100 (MS VS2015) in line 887 json.hpp #719

Closed
rockettomatooo opened this issue Aug 29, 2017 · 2 comments
Closed

Compile-Error C2100 (MS VS2015) in line 887 json.hpp #719

rockettomatooo opened this issue Aug 29, 2017 · 2 comments
Labels
platform: visual studio related to MSVC solution: duplicate the issue is a duplicate; refer to the linked issue instead

Comments

@rockettomatooo
Copy link

Hey there,

I'm happy to have found this awesome repo for parsing json but unfortunately json.hpp doesn't compile in my current project.
My Project-Setup is a plain win32-commandline-project with the json.hpp from the master-branch pasted in.

As the Heading says, the Error is in line 887:

//error: 1>c:\vsprojects\path\to\project\source\json.hpp(887): error C2100: Invalid Dereferencing

// code arround line 887:

// taken from ranges-v3
template<typename T>
struct static_const
{
    static constexpr T value{}; //line 887
};

Any suggestions for that error?
Thanks in advance

@theodelrieu
Copy link
Contributor

Yep I recognize that one. You need VS2015 Update 3 for 2.1.1 to work.

@nlohmann nlohmann added the platform: visual studio related to MSVC label Aug 29, 2017
@nlohmann
Copy link
Owner

Duplicate: #467.

@nlohmann nlohmann added the solution: duplicate the issue is a duplicate; refer to the linked issue instead label Aug 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: visual studio related to MSVC solution: duplicate the issue is a duplicate; refer to the linked issue instead
Projects
None yet
Development

No branches or pull requests

3 participants