Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-04-24 14:27:51

Thorsten Ottosen <thorsten.ottosen_at_[hidden]> 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

Boost list run by bdawes at, gregod at, cpdaniel at, john at