
24 Apr
2006
24 Apr
'06
6:27 p.m.
Thorsten Ottosen <thorsten.ottosen@dezide.com> writes:
Matias Capeletto wrote:
If we get the path into ptree we can overload other operator to support this type of path (we can not overload operator[]... because of precedence issues :( someone nows a way we can still use it?, the sintaxis will be very nice. As i see it, the only the choosen operator must have the same priority, see the examples, so we have only have * and % ).
Something like this may work...
ptree data; ptree::path p;
data.put( p / "debug" / "info" / "testfail" , "somefile.hpp" );
If we're going down that road, Shouldn't data.put( p/"debug/info/testfail/somefile.hpp" ); be made to work, too? -- Dave Abrahams Boost Consulting www.boost-consulting.com