2 #ifndef BOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED
\r
3 #define BOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED
\r
5 // Copyright Aleksey Gurtovoy 2001-2004
\r
7 // Distributed under the Boost Software License, Version 1.0.
\r
8 // (See accompanying file LICENSE_1_0.txt or copy at
\r
9 // http://www.boost.org/LICENSE_1_0.txt)
\r
11 // See http://www.boost.org/libs/mpl for documentation.
\r
13 // $Id: dtp.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
\r
14 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
\r
15 // $Revision: 49267 $
\r
17 #include <boost/mpl/aux_/config/workaround.hpp>
\r
19 // MWCW 7.x-8.0 "losts" default template parameters of nested class
\r
20 // templates when their owner classes are passed as arguments to other
\r
21 // templates; Borland 5.5.1 "forgets" them from the very beginning (if
\r
22 // the owner class is a class template), and Borland 5.6 isn't even
\r
23 // able to compile a definition of nested class template with DTP
\r
25 #if !defined(BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
\r
26 && !defined(BOOST_MPL_PREPROCESSING_MODE) \
\r
27 && BOOST_WORKAROUND(__BORLANDC__, >= 0x560) \
\r
28 && BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
\r
30 # define BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
\r
35 #if !defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
\r
36 && !defined(BOOST_MPL_PREPROCESSING_MODE) \
\r
37 && ( BOOST_WORKAROUND(__MWERKS__, <= 0x3001) \
\r
38 || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
\r
39 || defined(BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
\r
42 # define BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
\r
46 #endif // BOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED
\r