ice_eq.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_EQ_HPP_INCLUDED
  8. #define BOOST_TT_DETAIL_ICE_EQ_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_eq.hpp) is deprecated")
  15. #endif
  16. namespace boost {
  17. namespace type_traits {
  18. template <int b1, int b2>
  19. struct ice_eq
  20. {
  21. BOOST_STATIC_CONSTANT(bool, value = (b1 == b2));
  22. };
  23. template <int b1, int b2>
  24. struct ice_ne
  25. {
  26. BOOST_STATIC_CONSTANT(bool, value = (b1 != b2));
  27. };
  28. #ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
  29. template <int b1, int b2> bool const ice_eq<b1,b2>::value;
  30. template <int b1, int b2> bool const ice_ne<b1,b2>::value;
  31. #endif
  32. } // namespace type_traits
  33. } // namespace boost
  34. #endif // BOOST_TT_DETAIL_ICE_EQ_HPP_INCLUDED