-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Support windows for Visual Studio 2015 #88
Conversation
@kepkin it seems that you run tests only in debug configuration. MSVC treats noexcept as optimization hint and like other optimizations it can only take place in release mode. I've checked out your pull request, tested it in release mode and it passed all test cases. |
MSVC will try to build json object from value_t and use another operator<
Possible bug in MSVC as it fails with error: desctructor is inaccessible for iterator
Raw strings, escape sequences and custom literal together are buggy on MSVS.
2Stirev thanks for the hint, didn't knew that. I've rebased branch. BTW, release build takes astonishing 12 minutes on my laptop (while 2 min in debug)! Console log in apveyor says that it has finished with success, don't understand why github still says it's pending. |
should be
in VS2015. And how repair?
Code:
Without that code, program compiling without any problems. |
Thanks @TheAifam5, I added this. |
@TheAifam5 what version of code you try to compile? Could you give me a hash? I don't have such an error. |
@kepkin yep, nlohmann\master :) |
@TheAifam5 you need all commits from this PR to build with VS2015. Neils haven't merged all of them yet. You should wait or just use my branch https://github.com/kepkin/json/tree/vs14_nlohman |
Hi @kepkin , @satirev , @TheAifam5, I am sorry for the delay in this issue. As I do not work with MSVC, can anyone give me an update how the current version is doing on MSVC 2015 and what is left to be done? |
Just wait for VS2015 RTM... comming soon at 20.07.2015 |
Hi @nlohmann, that strange but i have the same error as @TheAifam5, i'm using the latest release version. code i execute (can contains errors, i'm new in c++ and VS) std::ifstream file(default_playlist_path.c_str());
json defaultPlaylist;
file >> defaultPlaylist;
json values;
for (json::iterator it = defaultPlaylist.begin(); it != defaultPlaylist.end(); ++it) {
json effect = it.value();
json controls = effect["controls"];
for (json::iterator cit = controls.begin(); cit != controls.end(); ++it) {
json control = cit.value();
if (!control["address"].is_null()) {
addressesMap[it.key()] = 0.0;
values[cit.key()] = { {"last", 0.0},
{"default", 0.0} };
}
}
} help me please :) |
I've made fine grained commits so you could review my changes thorougly. It compiles fine, and even works for majority of the cases.
The following is unit tests result for windows (linux pass 100%)