
11 Jan
2007
11 Jan
'07
4:59 p.m.
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