This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49274] [4.6/4.7 Regression] unique_ptr needs full definition of map type


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49274

--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-03 14:37:17 UTC ---
Thanks, Jason.

So to respond to the OP, although unique_ptr<T> allows T to be incomplete it
might instantiate T, and unlike unique_ptr most templates in the standard
library cannot be instantiated with incomplete types, so if T is e.g.
std::map<int, incomplete> then the results are undefined.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]