From: David Abrahams (dave_at_[hidden])
Date: 2005-06-26 13:03:18
Thorsten Ottosen <nesotto_at_[hidden]> writes:
> Toon Knapen <toon.knapen <at> fft.be> writes:
>> The vacpp compiler warns me that on line 40 of void_ptr_iterator.hpp:
>> 'iterator_category' cannot be declared because its name has already been
>> because of following statement
>> typedef typename iterator_category<T>::type iterator_category ;
>> and this sounds reasonable to me.
> does it? I don't have time to look up in the standard, but I don't think many
> other compilers have any problems with it. If you were to use
> iterator_category<T>::type again, then I could understand the problem.
The only context in which that's illegal is in the same scope that the
iterator_category class template was declared.
-- Dave Abrahams 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