mirror of
https://github.com/boostorg/move.git
synced 2025-07-31 12:57:14 +02:00
@ -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]
|
||||
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user