Currently I have this code: if(!variables[\"width\"].defaulted()) { configTree.put(treeNames[\"width\"], variables[\"width\"].as<int>());
I\'ve searched a lot through the boost manual, and the internet, as I believe it is quite a standard feature?
Consider following example: #include <boost\\property_tree\\ptree.hpp> #include <boost/any.hpp>
Based on the boost documentation here: http://www.boost.org/doc/libs/1_41_0/doc/html/boost_propertytree/container.html
So having such json: { \"config\": { \"name\": \"myconfig\", \"servecies\": { \"module\": [ \"file\", \"Admin\",
So this is official Boost PropertyTree example, I try to compile it on my visual studio 2008 and same on VS2010 get Error C2228: left of \'.put_value\' must have class/struct/unionc:\\program files (x
First of all I shall say that I think I got how it should be done but my code will not compile any way I try. I based my assumption on this official example of empty ptree trick. There you can find ne
I tried real quick as a test to see if I can pipe my twitter feed to boost\'s JSON parser.No dice.My JSON parser cannot handle the following lines:
I\'m searching for a way to write complex data configurations for my application. I don\'t really like xml or json for that job for different reasons.
I\'d like to use boost ptree in my project but since ptree.hpp causes about another 1000 header files to be included this increases compile times drastically (e.g. from 1s to 7s) and as it\'s needed i