Boost logo

Boost :

From: Marcin Kalicinski (kalita_at_[hidden])
Date: 2006-04-30 07:40:38


> [...] I'd also like to
> add that there should be clear distinction between nodes and leafes, eg.
> operator() (T t) - returns leaf (I do not insist on syntax)
> operator() [T t] - returns node

There are more operations one can perform on a node than just getting. So I
would rather replace operator () overload with explicitly named functions:
get, put, set, del.

The use will look like that:

int n = pt["a.very"]["long"]["path"].get<int>();
pt["a.very"]["long"]["path"].del();
pt["a.very"]["long"]["path"].put(17);

Best regards,
Marcin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk