rvalue references support in error_info

This commit is contained in:
Emil Dotchevski
2015-03-24 15:44:28 -07:00
parent c1f6b743e4
commit 5a040eedf5
4 changed files with 247 additions and 2 deletions

View File

@ -12,6 +12,8 @@
#pragma warning(push,1)
#endif
#include <boost/config.hpp>
#include <utility>
#include <string>
namespace
@ -41,11 +43,16 @@ boost
error_info:
public exception_detail::error_info_base
{
public:
public:
typedef T value_type;
error_info( value_type const & value );
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
error_info( error_info const & );
error_info( value_type && value ) BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR(value_type(std::move(value))));
error_info( error_info && x ) BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR(value_type(std::move(x.value_))));
#endif
~error_info() throw();
value_type const &
@ -60,7 +67,11 @@ boost
return value_;
}
private:
private:
error_info & operator=( error_info const & );
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
error_info & operator=( error_info && x );
#endif
std::string name_value_string() const;