tricky_abstract_type_test.cpp 674 B

12345678910111213141516171819202122232425262728293031
  1. // (C) Copyright John Maddock 2000.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #ifdef TEST_STD
  6. # include <type_traits>
  7. #else
  8. # include <boost/type_traits/is_empty.hpp>
  9. # include <boost/type_traits/is_stateless.hpp>
  10. #endif
  11. #include "test.hpp"
  12. #include "check_integral_constant.hpp"
  13. TT_TEST_BEGIN(tricky_abstract_type_test)
  14. BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_empty<test_abc1>::value, false);
  15. #ifndef TEST_STD
  16. BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless<test_abc1>::value, false);
  17. #endif
  18. TT_TEST_END