Boost logo

Boost :

From: Bohdan (warever_at_[hidden])
Date: 2002-09-24 18:18:39


"Douglas Gregor" <gregod_at_[hidden]> wrote in message
news:200209241302.48886.gregod_at_cs.rpi.edu...
> On Tuesday 24 September 2002 09:04 am, Peter Dimov wrote:
> > From: "Bohdan" <warever_at_[hidden]>
> >
> > > Hmm ... , looks like my problem is too exotic :)
> >
> > No, it's not that exotic, the indirect iterator adaptor has the same
> > problem. The answer to your original question is that yes, std/boost is
> > lacking pointer_traits (or dereference_traits) (consider the feature
> > request acknowledged), and C++ is lacking typeof(*p).
>
> ... or just iterator_traits extended to allow trivial iterators.
> boost/iterator_traits.hpp, anyone?

IMHO i like this idea. The simplest solutions are always the best , but
are you sure that this two idioms (iterators & pointers ) should be mixed ?
Does standart allow such iterators ?

PS: not too serious:
If "anyone" implements iterator_traits for a smart_ptr, than
what will be the name for its iterator category:
"uninterative_iterator_category" ?

regards,
bohdan


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