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 ;
}
The following code does not compile in Visual Studio 2015, but compiles fine in GCC.
Wandbox: http://melpon.org/wandbox/permlink/Izdt8DW4UGpVQdUd