Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-17 13:53:39

From: "David Abrahams" <dave_at_[hidden]>
> We've thought about it, and haven't come up with an answer. The details
> (like the fact that operator[] might be overloaded, which pretty much
> out the approach above) are non-trivial. If /you/ can fill in the details,
> I'm interested. I've already tried and failed.

For non-const iterators,

yes test(value_type &);
no test(...);


For const iterators, the technique doesn't work, but return by value works
adequately there.

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