PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/contrib/boost/mpl/aux_/config/dependent_nttp.hpp

http://pythonocc.googlecode.com/
C++ Header | 35 lines | 12 code | 9 blank | 14 comment | 3 complexity | 2dd6fabd8a7e9f4b2b45c675a0ec1b3e MD5 | raw file
 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: dependent_nttp.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
14// $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
15// $Revision: 49267 $
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