object_traits.hpp:

- A type has to be a class and have a trivial default constructor to be
    stateless


[SVN r12562]
This commit is contained in:
Douglas Gregor
2002-01-30 03:18:45 +00:00
parent 226abdf852
commit 964ec6c642

View File

@@ -390,8 +390,10 @@ struct is_stateless
{
BOOST_STATIC_CONSTANT(bool, value =
(::boost::type_traits::ice_and<
::boost::has_trivial_constructor<T>::value,
::boost::has_trivial_copy<T>::value,
::boost::has_trivial_destructor<T>::value
::boost::has_trivial_destructor<T>::value,
::boost::is_class<T>::value
>::value));
};