blob: 9f75a9cd610d7fd8510fe22eabace53cbd3979bb [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001
Jeff Thompson3d613fd2013-10-15 15:39:04 -07002#ifndef NDNBOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED
3#define NDNBOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED
Jeff Thompsonf7d49942013-08-01 16:47:40 -07004
5// Copyright Aleksey Gurtovoy 2001-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: dtp.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
14// $Date: 2008-10-10 23:19:02 -0700 (Fri, 10 Oct 2008) $
15// $Revision: 49267 $
16
Jeff Thompson2277ce52013-08-01 17:34:11 -070017#include <ndnboost/mpl/aux_/config/workaround.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070018
19// MWCW 7.x-8.0 "losts" default template parameters of nested class
20// templates when their owner classes are passed as arguments to other
21// templates; Borland 5.5.1 "forgets" them from the very beginning (if
22// the owner class is a class template), and Borland 5.6 isn't even
23// able to compile a definition of nested class template with DTP
24
Jeff Thompson3d613fd2013-10-15 15:39:04 -070025#if !defined(NDNBOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
26 && !defined(NDNBOOST_MPL_PREPROCESSING_MODE) \
27 && NDNBOOST_WORKAROUND(__BORLANDC__, >= 0x560) \
28 && NDNBOOST_WORKAROUND(__BORLANDC__, NDNBOOST_TESTED_AT(0x610))
Jeff Thompsonf7d49942013-08-01 16:47:40 -070029
Jeff Thompson3d613fd2013-10-15 15:39:04 -070030# define NDNBOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
Jeff Thompsonf7d49942013-08-01 16:47:40 -070031
32#endif
33
34
Jeff Thompson3d613fd2013-10-15 15:39:04 -070035#if !defined(NDNBOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
36 && !defined(NDNBOOST_MPL_PREPROCESSING_MODE) \
37 && ( NDNBOOST_WORKAROUND(__MWERKS__, <= 0x3001) \
38 || NDNBOOST_WORKAROUND(__BORLANDC__, NDNBOOST_TESTED_AT(0x610)) \
39 || defined(NDNBOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
Jeff Thompsonf7d49942013-08-01 16:47:40 -070040 )
41
Jeff Thompson3d613fd2013-10-15 15:39:04 -070042# define NDNBOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
Jeff Thompsonf7d49942013-08-01 16:47:40 -070043
44#endif
45
Jeff Thompson3d613fd2013-10-15 15:39:04 -070046#endif // NDNBOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED