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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Eric Friedman from comment #0)
> This seems incorrect since C++11 explicitly added a new single argument
> vector resize method that is supposed to default-construct elements rather
> than copy them.

It default constructs the new elements but when the vector reallocates its
storage the existing elements need to be moved or copied to the new storage.
Your type is neither movable nor copyable.

[vector.capacity]
 Requires: T shall be MoveInsertable and DefaultInsertable into *this.

Reply via email to