diff --git a/.travis.yml b/.travis.yml index 507b9eb..4709f81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,6 +64,9 @@ matrix: - os: linux env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++0x + - os: linux + env: TOOLSET=clang COMPILER=clang++-3.0 CXXSTD=c++0x + - os: linux env: TOOLSET=clang COMPILER=clang++-3.6 CXXSTD=c++0x diff --git a/include/boost/exception/detail/error_info_impl.hpp b/include/boost/exception/detail/error_info_impl.hpp index 1928d4a..a3063b2 100644 --- a/include/boost/exception/detail/error_info_impl.hpp +++ b/include/boost/exception/detail/error_info_impl.hpp @@ -7,6 +7,9 @@ #define UUID_CE6983AC753411DDA764247956D89593 #include +#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES +#include +#endif #include #include @@ -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)): 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)): v_(std::move(x.v_)) { }