aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-11-08 11:09:47 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-11-11 18:57:16 +0000
commitdfc9062eca47c237953c88a5614ae792792d058d (patch)
tree79e36c70bd9c8fa2c39862a6b843b44a2ac583e4 /libstdc++-v3
parent128f6a6d7af9cf187d59c1dbd9e59f5b782e17c8 (diff)
downloadgcc-dfc9062eca47c237953c88a5614ae792792d058d.zip
gcc-dfc9062eca47c237953c88a5614ae792792d058d.tar.gz
gcc-dfc9062eca47c237953c88a5614ae792792d058d.tar.bz2
libstdc++: Improve exception messages in conversion classes
The std::logic_error exceptions thrown from misuses of std::wbuffer_convert and std::wstring_convert should use names qualified with "std::". libstdc++-v3/ChangeLog: * include/bits/locale_conv.h (wstring_convert, wbuffer_convert): Adjust strings passed to exception constructors.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/include/bits/locale_conv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/locale_conv.h b/libstdc++-v3/include/bits/locale_conv.h
index 63dee1a..fa328ee 100644
--- a/libstdc++-v3/include/bits/locale_conv.h
+++ b/libstdc++-v3/include/bits/locale_conv.h
@@ -289,7 +289,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
* The object's conversion state will persist between conversions.
*/
wstring_convert(_Codecvt* __pcvt, state_type __state)
- : _M_cvt(__pcvt, "wstring_convert"),
+ : _M_cvt(__pcvt, "std::wstring_convert"),
_M_state(__state), _M_with_cvtstate(true)
{ }
@@ -428,7 +428,7 @@ _GLIBCXX_END_NAMESPACE_CXX11
explicit
wbuffer_convert(streambuf* __bytebuf, _Codecvt* __pcvt = new _Codecvt,
state_type __state = state_type())
- : _M_buf(__bytebuf), _M_cvt(__pcvt, "wbuffer_convert"),
+ : _M_buf(__bytebuf), _M_cvt(__pcvt, "std::wbuffer_convert"),
_M_state(__state), _M_always_noconv(_M_cvt->always_noconv())
{
if (_M_buf)