From: Jonathan Wakely Date: Tue, 27 Oct 2020 14:49:47 +0000 (+0000) Subject: libstdc++: Add missing noexcept to std::from_chars declarations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e579f66c3c6566e94be842bea7f2a93370489626;p=gcc.git libstdc++: Add missing noexcept to std::from_chars declarations libstdc++-v3/ChangeLog: * include/std/charconv (from_chars): Add noexcept to match definitions in src/c++17/floating_from_chars.cc --- diff --git a/libstdc++-v3/include/std/charconv b/libstdc++-v3/include/std/charconv index be668c1939e..dd1ebdf8322 100644 --- a/libstdc++-v3/include/std/charconv +++ b/libstdc++-v3/include/std/charconv @@ -691,15 +691,15 @@ namespace __detail #if _GLIBCXX_HAVE_USELOCALE from_chars_result from_chars(const char* __first, const char* __last, float& __value, - chars_format __fmt = chars_format::general); + chars_format __fmt = chars_format::general) noexcept; from_chars_result from_chars(const char* __first, const char* __last, double& __value, - chars_format __fmt = chars_format::general); + chars_format __fmt = chars_format::general) noexcept; from_chars_result from_chars(const char* __first, const char* __last, long double& __value, - chars_format __fmt = chars_format::general); + chars_format __fmt = chars_format::general) noexcept; #endif _GLIBCXX_END_NAMESPACE_VERSION