Commit bcb896ab by Jonathan Wakely Committed by Jonathan Wakely

basic_string.h (basic_string::basic_string()): Make noexcept conditional on allocator (LWG 2455).

	* include/bits/basic_string.h (basic_string::basic_string()): Make
	noexcept conditional on allocator (LWG 2455).

From-SVN: r223160
parent d0cad9fe
2015-05-13 Jonathan Wakely <jwakely@redhat.com> 2015-05-13 Jonathan Wakely <jwakely@redhat.com>
* include/bits/basic_string.h (basic_string::basic_string()): Make
noexcept conditional on allocator (LWG 2455).
* include/std/complex (polar): Check for negative rho (LWG 2459). * include/std/complex (polar): Check for negative rho (LWG 2459).
* include/experimental/tuple (apply): Handle pointers to member (LWG * include/experimental/tuple (apply): Handle pointers to member (LWG
......
...@@ -377,7 +377,10 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 ...@@ -377,7 +377,10 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
/** /**
* @brief Default constructor creates an empty string. * @brief Default constructor creates an empty string.
*/ */
basic_string() _GLIBCXX_NOEXCEPT basic_string()
#if __cplusplus >= 201103L
noexcept(is_nothrow_default_constructible<_Alloc>::value)
#endif
: _M_dataplus(_M_local_data()) : _M_dataplus(_M_local_data())
{ _M_set_length(0); } { _M_set_length(0); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment