[cfe-dev] std::vector insert type requirements

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Tue Jul 3 14:21:22 PDT 2018

Yeah, looks like a bug in libstdc++ (the GNU C++ standard library
implementation) - Clang will use that if that's what it finds.

On Tue, Jul 3, 2018 at 6:20 AM Nikita Alekseev via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Actually I already found the issue and it really seems like a bug.
> Standard does not require type to be copy assignable, but internally both
> clang and gcc use std::copy, which is more efficient, than for example
> initialized move, however this places additional requirement of being copy
> assignable on an underlying type.
> Maybe create overload for only move assignable type? We can still fallback
> to current implementation if copy assignment is implemented.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180703/fbcddf79/attachment.html>

More information about the cfe-dev mailing list