Boost logo

Boost :

From: Giovanni Bajo (giovannibajo_at_[hidden])
Date: 2004-04-09 21:38:34

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

Boost list run by bdawes at, gregod at, cpdaniel at, john at