diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-03-27 11:07:17 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-08-01 21:56:55 +0100 |
commit | 6586b015f1211ccd6e3e89b44dcb2116347edf89 (patch) | |
tree | fff5c46c67c1ea2412481d92c248fd81df4160fe /gcc | |
parent | f15cd1802129454029f7fcc8ee3ddd56a86cdad8 (diff) | |
download | gcc-6586b015f1211ccd6e3e89b44dcb2116347edf89.zip gcc-6586b015f1211ccd6e3e89b44dcb2116347edf89.tar.gz gcc-6586b015f1211ccd6e3e89b44dcb2116347edf89.tar.bz2 |
libstdc++: Remove noexcept from non-const std::basic_string::data() [PR99942]
The C++17 non-const overload of data() allows modifying the string
contents directly, so for the COW string we must do a copy-on-write to
unshare it. That means allocating, which can throw, so it shouldn't be
noexcept.
libstdc++-v3/ChangeLog:
PR libstdc++/99942
* include/bits/cow_string.h (data()): Change to noexcept(false).
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions