[SVN r85182]
This commit is contained in:
Ion Gaztañaga
2013-08-01 15:18:00 +00:00
parent b0ba0bb9c0
commit 0cd5b2022c
2 changed files with 13 additions and 3 deletions

View File

@ -793,7 +793,9 @@ Many thanks to all boosters that have tested, reviewed and improved the library.
[section:release_notes_boost_1_55_00 Boost 1.55 Release]
* Fixed bugs [@https://svn.boost.org/trac/boost/ticket/7952 #7952],
[@https://svn.boost.org/trac/boost/ticket/8842 #8842].
[@https://svn.boost.org/trac/boost/ticket/8842 #8842],
[@https://svn.boost.org/trac/boost/ticket/8764 #8764],
[@https://svn.boost.org/trac/boost/ticket/8765 #8765].
[endsect]

View File

@ -16,6 +16,8 @@
#include <boost/move/detail/config_begin.hpp>
#include <boost/type_traits/has_trivial_destructor.hpp>
#include <boost/type_traits/is_nothrow_move_constructible.hpp>
#include <boost/type_traits/is_nothrow_move_assignable.hpp>
#include <boost/move/detail/meta_utils.hpp>
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
@ -38,11 +40,17 @@ struct has_trivial_destructor_after_move
: ::boost::has_trivial_destructor<T>
{};
//! By default this traits returns false. Classes with non-throwing move constructor
//! By default this traits returns
//! <pre>boost::is_nothrow_move_constructible<T>::value || boost::is_nothrow_move_assignable<T>::value </pre>.
//! Classes with non-throwing move constructor
//! and assignment can specialize this trait to obtain some performance improvements.
template <class T>
struct has_nothrow_move
: public ::boost::move_detail::integral_constant<bool, false>
: public ::boost::move_detail::integral_constant
< bool
, boost::is_nothrow_move_constructible<T>::value ||
boost::is_nothrow_move_assignable<T>::value
>
{};
namespace move_detail {