[Bug libstdc++/42242] vector::resize unnecessarily calls null constructor
redi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 1 18:37:00 GMT 2009
------- Comment #5 from redi at gcc dot gnu dot org 2009-12-01 18:37 -------
(In reply to comment #2)
> On second thoughts, it might be necessary to split it into two overloads for
> C++1x, because this should work:
Gah, ignore that, I'm talking rubbish and that shouldn't work
Andrew, the standard would allow two overloads instead of one, see
[member.functions]/2 - and the C++1x draft specifies two separate overloads.
It's a reasonable enhancement request IMHO, but necessarily not a bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42242
More information about the Gcc-bugs
mailing list