fix doc example typo
[boost.git] / boost / concept_check / borland.hpp
blob107926bb31e63fbd321a135bc973f0c222aa8c32
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)
4 #ifndef BOOST_CONCEPT_CHECK_BORLAND_DWA2006429_HPP
5 # define BOOST_CONCEPT_CHECK_BORLAND_DWA2006429_HPP
7 namespace boost {
9 template <class ModelFn>
10 struct concept_check;
12 template <class Model>
13 struct concept_check<void(*)(Model)>
15 enum { instantiate = sizeof((((Model*)0)->~Model()), 3) };
18 # define BOOST_CONCEPT_ASSERT( ModelInParens ) \
19 enum { BOOST_PP_CAT(boost_concept_check,__LINE__) = \
20 boost::concept_check<void(*)ModelInParens>::instantiate \
23 } // namespace boost::concept_checking
25 #endif // BOOST_CONCEPT_CHECK_BORLAND_DWA2006429_HPP