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

test(a[i]);

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


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