André Pönitz wrote in news:bk**********@anderson.hrz.tu-chemnitz.de:
Is the following conforming?
#include <list>
class Foo;
typedef std::list<Foo> FooList;
class Foo {};
int main()
{
FooList dummy;
}
Note the 'typedef' comes before the definition of class Foo.
The compiler shouldn't attempt to instantial std::list< T > in
a typedef, this is standard conforming, however the are probably
some older compilers out there that wouldn't compile your code.
Further all that should be instantiated by you programme, other
than the layout/size info for std::list< Foo > is:
std::list< Foo >::list(); and
std::list< Foo >::~list();
HTH
Rob.
--
http://www.victim-prime.dsl.pipex.com/