From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-04-24 15:15:50
David Abrahams wrote:
> Thorsten Ottosen <thorsten.ottosen_at_[hidden]> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk