Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:40:59

0001 
0002 #ifndef BOOST_MPL_AUX_CONFIG_DEPENDENT_NTTP_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_CONFIG_DEPENDENT_NTTP_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2002-2004
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. 
0008 // (See accompanying file LICENSE_1_0.txt or copy at 
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 // See http://www.boost.org/libs/mpl for documentation.
0012 
0013 // $Id$
0014 // $Date$
0015 // $Revision$
0016 
0017 #include <boost/mpl/aux_/config/gcc.hpp>
0018 #include <boost/mpl/aux_/config/workaround.hpp>
0019 
0020 // GCC and EDG-based compilers incorrectly reject the following code:
0021 //   template< typename T, T n > struct a;
0022 //   template< typename T > struct b;
0023 //   template< typename T, T n > struct b< a<T,n> > {};
0024 
0025 #if    !defined(BOOST_MPL_CFG_NO_DEPENDENT_NONTYPE_PARAMETER_IN_PARTIAL_SPEC) \
0026     && !defined(BOOST_MPL_PREPROCESSING_MODE) \
0027     && (   BOOST_WORKAROUND(__EDG_VERSION__, BOOST_TESTED_AT(300)) \
0028         || BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0302)) \
0029         )
0030 
0031 #   define BOOST_MPL_CFG_NO_DEPENDENT_NONTYPE_PARAMETER_IN_PARTIAL_SPEC
0032 
0033 #endif
0034 
0035 #endif // BOOST_MPL_AUX_CONFIG_DEPENDENT_NTTP_HPP_INCLUDED