// ---------------------------------------------------------------------- // // typename.cc - Test for 'typename' keyword support. // // History: // 08-Jul-1999 WEB Initial draft, adapted from Blitz++ // 17-Aug-1999 WEB Insert conditional cure // 19-Aug-1999 WEB Use typename w/in a template; remove conditional cure // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" struct X { X() { ; } typedef int myType; }; // X template< class T > struct C { C() : myD( 0 ) { ; } typename T::myType myD; }; // C int main() { return C().myD; } // main()