Sha256: 681e49d807d1adea6f6cea5863e38967616c50182984e5153f8bef03862b4974

Contents?: true

Size: 1.08 KB

Versions: 6

Compression:

Stored size: 1.08 KB

Contents

// Copyright David Abrahams 2006. Distributed under the Boost
// Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_CONCEPT_USAGE_DWA2006919_HPP
# define BOOST_CONCEPT_USAGE_DWA2006919_HPP

# include <boost/concept/assert.hpp>
# include <boost/config/workaround.hpp>
# include <boost/concept/detail/backward_compatibility.hpp>

namespace boost { namespace concepts { 

template <class Model>
struct usage_requirements
{
    ~usage_requirements() { ((Model*)0)->~Model(); }
};

#  if BOOST_WORKAROUND(__GNUC__, <= 3)

#   define BOOST_CONCEPT_USAGE(model)                                    \
      model(); /* at least 2.96 and 3.4.3 both need this :( */           \
      BOOST_CONCEPT_ASSERT((boost::concepts::usage_requirements<model>)); \
      ~model()

#  else

#   define BOOST_CONCEPT_USAGE(model)                                    \
      BOOST_CONCEPT_ASSERT((boost::concepts::usage_requirements<model>)); \
      ~model()

#  endif

}} // namespace boost::concepts

#endif // BOOST_CONCEPT_USAGE_DWA2006919_HPP

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp