Sha256: e0709df3f669fdc56175da894e6fae722df7a5b0d31ff8c9af536506407acfb1

Contents?: true

Size: 1.78 KB

Versions: 15

Compression:

Stored size: 1.78 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_ASSERT_DWA2006430_HPP
# define BOOST_CONCEPT_ASSERT_DWA2006430_HPP

# include <boost/config.hpp>
# include <boost/config/workaround.hpp>

// The old protocol used a constraints() member function in concept
// checking classes.  If the compiler supports SFINAE, we can detect
// that function and seamlessly support the old concept checking
// classes.  In this release, backward compatibility with the old
// concept checking classes is enabled by default, where available.
// The old protocol is deprecated, though, and backward compatibility
// will no longer be the default in the next release.

# if !defined(BOOST_NO_OLD_CONCEPT_SUPPORT)                                         \
    && !defined(BOOST_NO_SFINAE)                                                    \
                                                                                    \
    && !(BOOST_WORKAROUND(__GNUC__, == 3) && BOOST_WORKAROUND(__GNUC_MINOR__, < 4))

// Note: gcc-2.96 through 3.3.x have some SFINAE, but no ability to
// check for the presence of particularmember functions.

#  define BOOST_OLD_CONCEPT_SUPPORT

# endif

# ifdef BOOST_MSVC
#  include <boost/concept/detail/msvc.hpp>
# elif BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x564))
#  include <boost/concept/detail/borland.hpp>
# else 
#  include <boost/concept/detail/general.hpp>
# endif

  // Usage, in class or function context:
  //
  //     BOOST_CONCEPT_ASSERT((UnaryFunctionConcept<F,bool,int>));
  //
# define BOOST_CONCEPT_ASSERT(ModelInParens) \
    BOOST_CONCEPT_ASSERT_FN(void(*)ModelInParens)

#endif // BOOST_CONCEPT_ASSERT_DWA2006430_HPP

Version data entries

15 entries across 15 versions & 1 rubygems

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