blob: 107926bb31e63fbd321a135bc973f0c222aa8c32 [file] [log] [blame]
Brian Silvermanbca6d252018-08-04 23:36:16 -07001// 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)
4#ifndef BOOST_CONCEPT_CHECK_BORLAND_DWA2006429_HPP
5# define BOOST_CONCEPT_CHECK_BORLAND_DWA2006429_HPP
6
7namespace boost {
8
9template <class ModelFn>
10struct concept_check;
11
12template <class Model>
13struct concept_check<void(*)(Model)>
14{
15 enum { instantiate = sizeof((((Model*)0)->~Model()), 3) };
16};
17
18# define BOOST_CONCEPT_ASSERT( ModelInParens ) \
19 enum { BOOST_PP_CAT(boost_concept_check,__LINE__) = \
20 boost::concept_check<void(*)ModelInParens>::instantiate \
21 }
22
23} // namespace boost::concept_checking
24
25#endif // BOOST_CONCEPT_CHECK_BORLAND_DWA2006429_HPP