[Bug libstdc++/106239] vector::resize(size_type, const value_type&) should not require copy-assignability

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jul 9 05:49:02 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106239

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm:
https://en.cppreference.com/w/cpp/container/vector/resize (I know exactly not
the C++ standard but usually gives a good summary of it):
-T must meet the requirements of CopyInsertable in order to use overload (2).

https://en.cppreference.com/w/cpp/named_req/CopyInsertable
https://en.cppreference.com/w/cpp/named_req/MoveInsertable



I think libstdc++ is correct here ...


More information about the Gcc-bugs mailing list