Chris@16: // Copyright David Abrahams 2006. Distributed under the Boost Chris@16: // Software License, Version 1.0. (See accompanying Chris@16: // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: #ifndef BOOST_CONCEPT_USAGE_DWA2006919_HPP Chris@16: # define BOOST_CONCEPT_USAGE_DWA2006919_HPP Chris@16: Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: Chris@16: namespace boost { namespace concepts { Chris@16: Chris@16: template Chris@16: struct usage_requirements Chris@16: { Chris@16: ~usage_requirements() { ((Model*)0)->~Model(); } Chris@16: }; Chris@16: Chris@16: # if BOOST_WORKAROUND(__GNUC__, <= 3) Chris@16: Chris@16: # define BOOST_CONCEPT_USAGE(model) \ Chris@16: model(); /* at least 2.96 and 3.4.3 both need this :( */ \ Chris@16: BOOST_CONCEPT_ASSERT((boost::concepts::usage_requirements)); \ Chris@16: ~model() Chris@16: Chris@16: # else Chris@16: Chris@16: # define BOOST_CONCEPT_USAGE(model) \ Chris@16: BOOST_CONCEPT_ASSERT((boost::concepts::usage_requirements)); \ Chris@16: ~model() Chris@16: Chris@16: # endif Chris@16: Chris@16: }} // namespace boost::concepts Chris@16: Chris@16: #endif // BOOST_CONCEPT_USAGE_DWA2006919_HPP