KSON GENERATED WHAT MAPPING OF INPUT VECTOR TO OUT PUT VECTOR
Answers
Answered by
0
Answer:
pls mark me
Explanation:
Hi I would like to do something easy with the lib jsoncpp like this:
std::map<int,string> mymap;
mymap[0]="zero";
mymap[1]= "one";
Json::Value root;
root["teststring"] = "m_TestString"; //it works
root["testMap"] = mymap; //it does not work
Json::StyledWriter writer;
string output = writer.write( root );
The error is : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::map<_Kty,_Ty>'
Similar questions