Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 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 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 9 | #ifndef NDNBOOST_TT_DETAIL_ICE_AND_HPP_INCLUDED |
| 10 | #define NDNBOOST_TT_DETAIL_ICE_AND_HPP_INCLUDED |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 11 | |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 12 | #include <ndnboost/config.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 13 | |
| 14 | namespace ndnboost { |
| 15 | namespace type_traits { |
| 16 | |
| 17 | template <bool b1, bool b2, bool b3 = true, bool b4 = true, bool b5 = true, bool b6 = true, bool b7 = true> |
| 18 | struct ice_and; |
| 19 | |
| 20 | template <bool b1, bool b2, bool b3, bool b4, bool b5, bool b6, bool b7> |
| 21 | struct ice_and |
| 22 | { |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 23 | NDNBOOST_STATIC_CONSTANT(bool, value = false); |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | template <> |
| 27 | struct ice_and<true, true, true, true, true, true, true> |
| 28 | { |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 29 | NDNBOOST_STATIC_CONSTANT(bool, value = true); |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | } // namespace type_traits |
| 33 | } // namespace ndnboost |
| 34 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame] | 35 | #endif // NDNBOOST_TT_DETAIL_ICE_AND_HPP_INCLUDED |