[llvm-bugs] [Bug 34906] vector::insert(pos, iter, iter) incorrectly requires value-assignment for forward_iterators.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 8 02:24:46 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=34906

Eric Fiselier <eric at efcs.ca> changed:

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

--- Comment #1 from Eric Fiselier <eric at efcs.ca> ---
Woops, my mistake. According to [sequence.reqmts]p4:
> i and j denote iterators satisfying input iterator requirements and refer to elements implicitly convertible to value_type,

So libc++ is totally OK in its current behavior. David Jones pointed this out
during review D38757 (https://reviews.llvm.org/D38757)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171108/8fdf142c/attachment.html>


More information about the llvm-bugs mailing list