ice_not.hpp 971 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // (C) Copyright John Maddock and Steve Cleary 2000.
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. //
  6. // See http://www.boost.org/libs/type_traits for most recent version including documentation.
  7. #ifndef BOOST_TT_DETAIL_ICE_NOT_HPP_INCLUDED
  8. #define BOOST_TT_DETAIL_ICE_NOT_HPP_INCLUDED
  9. #include <boost/config.hpp>
  10. //
  11. // This header is deprecated and no longer used by type_traits:
  12. //
  13. #if defined(__GNUC__) || defined(_MSC_VER)
  14. # pragma message("NOTE: Use of this header (ice_not.hpp) is deprecated")
  15. #endif
  16. namespace boost {
  17. namespace type_traits {
  18. template <bool b>
  19. struct ice_not
  20. {
  21. BOOST_STATIC_CONSTANT(bool, value = true);
  22. };
  23. template <>
  24. struct ice_not<true>
  25. {
  26. BOOST_STATIC_CONSTANT(bool, value = false);
  27. };
  28. } // namespace type_traits
  29. } // namespace boost
  30. #endif // BOOST_TT_DETAIL_ICE_NOT_HPP_INCLUDED