
8 Nov
2004
8 Nov
'04
12:15 a.m.
Eric Friedman wrote:
Could you clarify what you mean by standard templates "shall not be used with incomplete types"---does this mean for instance that std::vector<incomplete_t> is undefined?
Yes, and ...
If so, is it undefined even if such a type is even only mentioned in a program without actually ever instantiating the template?
... no, but you need to be careful. Many things cause instantiation.