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