Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/concept/usage.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 // Copyright David Abrahams 2006. Distributed under the Boost |
Chris@16 | 2 // Software License, Version 1.0. (See accompanying |
Chris@16 | 3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 4 #ifndef BOOST_CONCEPT_USAGE_DWA2006919_HPP |
Chris@16 | 5 # define BOOST_CONCEPT_USAGE_DWA2006919_HPP |
Chris@16 | 6 |
Chris@16 | 7 # include <boost/concept/assert.hpp> |
Chris@16 | 8 # include <boost/detail/workaround.hpp> |
Chris@16 | 9 # include <boost/concept/detail/backward_compatibility.hpp> |
Chris@16 | 10 |
Chris@16 | 11 namespace boost { namespace concepts { |
Chris@16 | 12 |
Chris@16 | 13 template <class Model> |
Chris@16 | 14 struct usage_requirements |
Chris@16 | 15 { |
Chris@16 | 16 ~usage_requirements() { ((Model*)0)->~Model(); } |
Chris@16 | 17 }; |
Chris@16 | 18 |
Chris@16 | 19 # if BOOST_WORKAROUND(__GNUC__, <= 3) |
Chris@16 | 20 |
Chris@16 | 21 # define BOOST_CONCEPT_USAGE(model) \ |
Chris@16 | 22 model(); /* at least 2.96 and 3.4.3 both need this :( */ \ |
Chris@16 | 23 BOOST_CONCEPT_ASSERT((boost::concepts::usage_requirements<model>)); \ |
Chris@16 | 24 ~model() |
Chris@16 | 25 |
Chris@16 | 26 # else |
Chris@16 | 27 |
Chris@16 | 28 # define BOOST_CONCEPT_USAGE(model) \ |
Chris@16 | 29 BOOST_CONCEPT_ASSERT((boost::concepts::usage_requirements<model>)); \ |
Chris@16 | 30 ~model() |
Chris@16 | 31 |
Chris@16 | 32 # endif |
Chris@16 | 33 |
Chris@16 | 34 }} // namespace boost::concepts |
Chris@16 | 35 |
Chris@16 | 36 #endif // BOOST_CONCEPT_USAGE_DWA2006919_HPP |