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
This commit is contained in:
Jonathan Wakely 2020-10-27 14:49:47 +00:00
parent 044b04348c
commit e579f66c3c

View 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