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>();

Best regards,

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