-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Description
The following code does not compile in Visual Studio 2015, but compiles fine in GCC.
#include <string>
#include <map>
#include <iostream>
#include "json.hpp"
using JSON = nlohmann::json ;
int main (){
using namespace std ;
map<JSON::value_t,string> jsonTypes ;
jsonTypes[JSON::value_t::array] = "array" ;
cout << jsonTypes[ JSON({"val1", 123, false}) ] << endl ;
}
Wandbox: http://melpon.org/wandbox/permlink/Izdt8DW4UGpVQdUd
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
platform: visual studiorelated to MSVCrelated to MSVC