public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] libstdc++: Add missing noexcept to std::from_chars declarations
@ 2020-10-27 14:58 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-10-27 14:58 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 177 bytes --]

libstdc++-v3/ChangeLog:

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

Tested x86_64-linux. Committed to trunk.


[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1304 bytes --]

commit e579f66c3c6566e94be842bea7f2a93370489626
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Oct 27 14:49:47 2020

    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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-27 14:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27 14:58 [committed] libstdc++: Add missing noexcept to std::from_chars declarations Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).