"John Maddock" <[EMAIL PROTECTED]> writes:

>> I have two questions about the use of the typename-keyword when using
>> template-parameter dependent types.
>>
>> 1. Consider the following code:
>>
>>     template< class T >
>>     {
>>         typedef typename A::foo t;
>>     };
>>
>> IIRC there are some compilers that only compile the above without the
>> typename keyword? Is that correct (I only have the Intel and GCC compilers
>> at hand, so I can't check)
>
> Boost code always uses the typename: there are no current compilers that
> don't support it IMO.

There are highly platform/code-dependet scenarios where vc6 chokes on
it.  In particular, see
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/libs/config/config.htm#helpers


-- 
                       David Abrahams
   [EMAIL PROTECTED] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to