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

@ -64,6 +64,9 @@ matrix:
- os: linux - os: linux
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++0x env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++0x
- os: linux
env: TOOLSET=clang COMPILER=clang++-3.0 CXXSTD=c++0x
- os: linux - os: linux
env: TOOLSET=clang COMPILER=clang++-3.6 CXXSTD=c++0x env: TOOLSET=clang COMPILER=clang++-3.6 CXXSTD=c++0x

View File

@ -7,6 +7,9 @@
#define UUID_CE6983AC753411DDA764247956D89593 #define UUID_CE6983AC753411DDA764247956D89593
#include <boost/config.hpp> #include <boost/config.hpp>
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
#include <boost/type_traits/is_nothrow_move_constructible.hpp>
#endif
#include <utility> #include <utility>
#include <string> #include <string>
@ -56,11 +59,11 @@ boost
v_(x.v_) 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)) 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_)) v_(std::move(x.v_))
{ {
} }