
12 Feb
2010
12 Feb
'10
8:53 p.m.
I have been using the boost::property_tree in one of our products, and have become frustrated by an inconsistency between two of the convenience functions. The basic_ptree get function allows the specification of a separate delimiter when specifying the path, such as: pt.get<float>('/', "p.a.t.h/t.o/v.a.l.u.e"); However, there is no similar way to call put to place the same value as follows: pt.put('/', "p.a.t.h/t.o/v.a.l.u.e", 3.14f); I would like propose the addition of functions to allow consistency between the use of get and put functions. The basic use of these functions is described in http://www.boost.org/doc/libs/1_42_0/doc/html/boost_propertytree/accessing.h... Are there any thoughts or comments? Regards, Andrew Hundt