
24 Apr
2006
24 Apr
'06
7:15 p.m.
David Abrahams wrote:
Thorsten Ottosen <thorsten.ottosen@dezide.com> writes:
Matias Capeletto wrote:
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?
I'm really not seeing the introduction of a path class as an improvement. What was wrong with the two traversal mechanisms already in the library? Combine it with a more intelligent path grammar that autodetects alternative separators as in "debug.info.testfile" // using . "/debug/info/test.file" // uses / and all is well.