Update is_trivially_copyable implementation for user move with defaulted copy

This commit is contained in:
Glen Fernandes committed 2020-08-14 09:53:04 -04:00
1 parent 5588bb1ab7
commit c6c7ff1647
2 files changed
+20 -2

No files matched your search

@@ -13,6 +13,8 @@ or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/type_traits/has_trivial_assign.hpp>
#include <boost/type_traits/has_trivial_copy.hpp>
#include <boost/type_traits/has_trivial_destructor.hpp>
#include <boost/type_traits/has_trivial_move_assign.hpp>
#include <boost/type_traits/has_trivial_move_constructor.hpp>
namespace boost {
@@ -20,6 +22,8 @@ template<class T>
struct is_trivially_copyable
: integral_constant<bool, has_trivial_copy<T>::value &&
has_trivial_assign<T>::value &&
has_trivial_move_constructor<T>::value &&
has_trivial_move_assign<T>::value &&
has_trivial_destructor<T>::value> { };
} /* boost */