[Bug libstdc++/80579] std::vector<T>::reserve should not require T to be moveable.
carlo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Apr 30 22:04:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80579
Carlo Wood <carlo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Carlo Wood <carlo at gcc dot gnu.org> ---
Yeah, there seems to have been confusion (by me) about how to invoke clang via
the irc bot that I used... I was under the impression that since reserve()
existed before move constructors existed it just had to work when I did nothing
special, and I didn't, I just used a std::atomic_bool as member in my class
(which in turn caused the move constructor to be deleted; I didn't delete it
manually).
I guess that this is not a bug then.
Sorry,
Carlo Wood
More information about the Gcc-bugs
mailing list