Boost logo

Boost :

From: Bjorn.Karlsson_at_[hidden]
Date: 2004-02-26 06:20:30


> From: David Abrahams [mailto:dave_at_[hidden]]
[snip]
> > Sorry, during shortening my previous mail before posting,
> one sentence
> > got lost :) I was suggesting to add is_iterator,
>
> If you can figure out how to do that, you will be a hero to many.
[snip]

One way would be to check if the required iterator_traits are defined for
the type, i.e. iterator_traits<T>::difference_type etc, using
BOOST_MPL_HAS_XXX_TRAIT_DEF. Too fragile?

Bjorn


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