Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 1 | // Copyright David Abrahams 2006. Distributed under the Boost |
| 2 | // Software License, Version 1.0. (See accompanying |
| 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 4 | #ifndef NDNBOOST_CONCEPT_DETAIL_BORLAND_DWA2006429_HPP |
| 5 | # define NDNBOOST_CONCEPT_DETAIL_BORLAND_DWA2006429_HPP |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 6 | |
| 7 | # include <ndnboost/preprocessor/cat.hpp> |
| 8 | # include <ndnboost/concept/detail/backward_compatibility.hpp> |
| 9 | |
| 10 | namespace ndnboost { namespace concepts { |
| 11 | |
| 12 | template <class ModelFnPtr> |
| 13 | struct require; |
| 14 | |
| 15 | template <class Model> |
| 16 | struct require<void(*)(Model)> |
| 17 | { |
| 18 | enum { instantiate = sizeof((((Model*)0)->~Model()), 3) }; |
| 19 | }; |
| 20 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 21 | # define NDNBOOST_CONCEPT_ASSERT_FN( ModelFnPtr ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 22 | enum \ |
| 23 | { \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 24 | NDNBOOST_PP_CAT(boost_concept_check,__LINE__) = \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 25 | ndnboost::concepts::require<ModelFnPtr>::instantiate \ |
| 26 | } |
| 27 | |
| 28 | }} // namespace ndnboost::concept |
| 29 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 30 | #endif // NDNBOOST_CONCEPT_DETAIL_BORLAND_DWA2006429_HPP |