Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2005-05-03 19:38:48


Thorsten Ottosen wrote:
> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:uu0lkc3x5.fsf_at_boost-consulting.com...
> |
> | I don't understand why there are so many implementations of the
> | range_value metafunction. It seems to me that it should always be
> | defined to be:
> |
> | template <class R>
> | struct range_value
> | : boost::iterator_value<
> | typename range_iterator<R>::type
> | >::type
> | {};
> |
> | What am I missing?
>
> dunno.
>
> do we dare change it before a release?
>

Shouldn't this be:

template <class R>
struct range_value
   : boost::iterator_value<
         typename range_iterator<R>::type
>
{};

? (Note absence of trailing ::type.)

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

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