Sha256: 8d35640b1e32d3bd08b13c253b3dfd6c6400ee79eaab56261c70d511cd6cc4c4

Contents?: true

Size: 1.31 KB

Versions: 13

Compression:

Stored size: 1.31 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
{
#   if defined(BOOST_GCC) && (BOOST_GCC >= 110000)
#   pragma GCC diagnostic push
#   pragma GCC diagnostic ignored "-Wnonnull"
#   endif
    ~usage_requirements() { ((Model*)0)->~Model(); }
#   if defined(BOOST_GCC) && (BOOST_GCC >= 110000)
#   pragma GCC diagnostic pop
#   endif
};

#  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

13 entries across 13 versions & 1 rubygems

Version Path
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/concept/usage.hpp