Boost logo

Boost :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2007-01-11 11:59:43


shunsuke wrote:
> Eric Niebler wrote:

> Another(more generic?) workaround seems known.
>
> template< class T >
> typename range_iterator< typename add_const<T>::type >::type
> some_algo(T const& rng) {
> // ...
> }
>
> I prefer a macro to document this bug... http://tinyurl.com/y2wkq3
> Well, this bug seems not only involved in Boost.Range.
> VC++7.1 users would need this workaround; everywhere 'T' is deduced as
> array type.

Oh man, I hate that compiler (and I love it too).

Shunsuke, may I include your code in the boost distribution?

If so, would the range library be an ok place to put it?
And is the name PSTADE_DEDUCED_CONST(T) really a good name
? (What about BOOST_RANGE_CONST_TYPE?)

-Thorsten


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