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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs