
27 Feb
2005
27 Feb
'05
4:37 p.m.
"David Abrahams" <dave@boost-consulting.com> wrote
template <class Iterator, class Enable = void> struct IteratorTraits;
template <class Iterator> struct IteratorTraits< Iterator , boost::enable_if< boost::is_same< Iterator , typename std::vector< typename std::iterator_traits<Iterator>::value_type >::iterator > >::type
{ // whatever you want here. };
If the following proposal was accepted it might even be possible to do without the extra parameter :-) http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1696.html regards Andy Little