Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 1 | // Copyright David Abrahams 2002. |
| 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 | |
| 8 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 9 | #ifndef NDNBOOST_TT_DETAIL_FALSE_RESULT_HPP_INCLUDED |
| 10 | #define NDNBOOST_TT_DETAIL_FALSE_RESULT_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 | // Utility class which always "returns" false |
| 18 | struct false_result |
| 19 | { |
| 20 | template <typename T> struct result_ |
| 21 | { |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 22 | NDNBOOST_STATIC_CONSTANT(bool, value = false); |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 23 | }; |
| 24 | }; |
| 25 | |
| 26 | }} // namespace ndnboost::type_traits |
| 27 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 28 | #endif // NDNBOOST_TT_DETAIL_FALSE_RESULT_HPP_INCLUDED |