Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-06-18 05:42:25


From: "Dirk Gerrits" <dirkg_at_[hidden]>

> > The reason was that we believed it not possible, which I still think is
> > the case. Though you never know what new tricks people will come up
with :)
>
> Couldn't you do a compile-time 'select' on 'is_pointer' to redirect
> pointer types to 'boost::detail::pointer_iterator_traits' and other
> iterators to 'std::iterator_traits'? I haven't tried it, but in my mind
> it seems plausible. Your thoughts?

We could do that, but somebody needs to write pointer_iterator_traits for
compilers without partial specialization. If you can figure out how to do
that, you'll be the hero of every VC++ user in the world (hint: it's REALLY
hard).

-Dave


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