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

            Bug ID: 25973
           Summary: basic_string::assign(InputIt, InputIt) doesn't provide
                    the strong exception safety guarantee
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: rs2...@gmail.com
                CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com
    Classification: Unclassified

Per [string.require]/2:

If any member function or operator of basic_string throws an exception, that
function or operator shall have no other effect.

libc++'s implementation of assign(InputIterator, InputIterator) does clear()
followed by push_back() in a loop, which clearly doesn't meet this requirement.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to