There is a sample of filling boost::property_tree::ptree
boost::property_tree::ptree pt;
pt.put("one", "value1");
pt.put("one.two", "value2");
pt.put("one.three", "value3");
How to extend Boost.Assign library that it fits for initializing boost::property_tree::ptree
object?
I'd like something like
// XXX is some function / functor
boost::property_tree::ptree pt =
XXX("one", "value1")("one.two", "value2")("one.three", "value3");
You can use something like
usage: