ice_and.hpp 1.2 KB

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