diff --git a/include/boost/type_traits/object_traits.hpp b/include/boost/type_traits/object_traits.hpp index 41dd46f..501ebf3 100644 --- a/include/boost/type_traits/object_traits.hpp +++ b/include/boost/type_traits/object_traits.hpp @@ -380,6 +380,21 @@ template struct is_empty #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION +/********************************************** + * + * is_stateless + * + **********************************************/ +template +struct is_stateless +{ + BOOST_STATIC_CONSTANT(bool, value = + (::boost::type_traits::ice_and< + ::boost::has_trivial_copy::value, + ::boost::has_trivial_destructor::value + >::value)); +}; + template struct is_base_and_derived {