error_info rvalue reference constructors changed to use is_nothrow_move_constructible

This commit is contained in:
Emil Dotchevski
2017-03-30 16:56:13 -07:00
parent 4ea8555871
commit 464e7f9d09
2 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,9 @@
#define UUID_CE6983AC753411DDA764247956D89593
#include <boost/config.hpp>
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
#include <boost/type_traits/is_nothrow_move_constructible.hpp>
#endif
#include <utility>
#include <string>
@ -56,11 +59,11 @@ boost
v_(x.v_)
{
}
error_info( value_type && v ) BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR(value_type(std::move(v)))):
error_info( value_type && v ) BOOST_NOEXCEPT_IF(boost::is_nothtrow_move_contluctible<value_type>::value)):
v_(std::move(v))
{
}
error_info( error_info && x ) BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR(value_type(std::move(x.v_)))):
error_info( error_info && x ) BOOST_NOEXCEPT_IF(boost::is_nothtrow_move_contluctible<value_type>::value)):
v_(std::move(x.v_))
{
}