
10 Apr
2004
10 Apr
'04
2:38 a.m.
Matthew Vogt wrote:
template <typename X> struct identity { typedef X type; };
friend typename identity<T>::type;
Non-standard. Even if you change 'typename' into class/struct, it will still be ill-formed because identity<T>::type resolves to a typedef, which is not allowed. Check with GCC 3.4.0, for instance. -- Giovanni Bajo