D
Diego Martins
http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-39.14
--------
[39.14] Why can't I put a forward-declared class in a std::vector<>?
....
Just remember this: Whenever you use a class as a template parameter,
the declaration of that class must be complete and not simply forward
declared.
--------
is this endorsed by the standard?
AFAIK, this is dependent of the class template specification.
For example, I was able to declare vectors with incomplete types in
more than one compiler.
Diego
--------
[39.14] Why can't I put a forward-declared class in a std::vector<>?
....
Just remember this: Whenever you use a class as a template parameter,
the declaration of that class must be complete and not simply forward
declared.
--------
is this endorsed by the standard?
AFAIK, this is dependent of the class template specification.
For example, I was able to declare vectors with incomplete types in
more than one compiler.
Diego