There have been a number of examples posted to the web that demonstrate how to create a JSON array using boost's property tree.
The basic syntax is:
boost::property_tree::ptree array;
array.push_back(std::make_pair("", "value-1"));
array.push_back(std::make_pair("", "value-2"));
This appears to not work using boost 1.54 and visual studio c++ 2012. It works fine using VC 2010 and the same boost version.
The error I receive is "cannot convert parameter 1 from std::pair<_Ty1,_Ty2> to const std::pair<_Ty1,_Ty2> &"
Any suggestions that others may have on getting around this would be greatly appreciated.