1 
2 #ifndef BOOST_MPL_AUX_CONFIG_DEPENDENT_NTTP_HPP_INCLUDED
3 #define BOOST_MPL_AUX_CONFIG_DEPENDENT_NTTP_HPP_INCLUDED
4 
5 // Copyright Aleksey Gurtovoy 2002-2004
6 //
7 // Distributed under the Boost Software License, Version 1.0.
8 // (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
10 //
11 // See http://www.boost.org/libs/mpl for documentation.
12 
13 // $Id$
14 // $Date$
15 // $Revision$
16 
17 #include <boost/mpl/aux_/config/gcc.hpp>
18 #include <boost/mpl/aux_/config/workaround.hpp>
19 
20 // GCC and EDG-based compilers incorrectly reject the following code:
21 //   template< typename T, T n > struct a;
22 //   template< typename T > struct b;
23 //   template< typename T, T n > struct b< a<T,n> > {};
24 
25 #if    !defined(BOOST_MPL_CFG_NO_DEPENDENT_NONTYPE_PARAMETER_IN_PARTIAL_SPEC) \
26     && !defined(BOOST_MPL_PREPROCESSING_MODE) \
27     && (   BOOST_WORKAROUND(__EDG_VERSION__, BOOST_TESTED_AT(300)) \
28         || BOOST_WORKAROUND(BOOST_MPL_CFG_GCC, BOOST_TESTED_AT(0x0302)) \
29         )
30 
31 #   define BOOST_MPL_CFG_NO_DEPENDENT_NONTYPE_PARAMETER_IN_PARTIAL_SPEC
32 
33 #endif
34 
35 #endif // BOOST_MPL_AUX_CONFIG_DEPENDENT_NTTP_HPP_INCLUDED
36