libstdc++: Add missing noexcept to std::from_chars declarations
authorJonathan Wakely <jwakely@redhat.com>
Tue, 27 Oct 2020 14:49:47 +0000 (14:49 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 27 Oct 2020 14:50:38 +0000 (14:50 +0000)
libstdc++-v3/ChangeLog:

* include/std/charconv (from_chars): Add noexcept to match
definitions in src/c++17/floating_from_chars.cc

libstdc++-v3/include/std/charconv

index be668c1939e3d54d80e352ede69e99379ce7b40a..dd1ebdf832292afb09f3788bc01e77ed25a63c1e 100644 (file)
@@ -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