fix Borland version check

[SVN r15601]
This commit is contained in:
Aleksey Gurtovoy
2002-10-01 11:14:40 +00:00
parent 99b3eaa2fe
commit 8b31f5cd05

View File

@@ -17,12 +17,15 @@
#ifndef BOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED
#define BOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED
#include "boost/config.hpp"
// MWCW 7.x-8.0 "losts" default template parameters of nested class
// templates when their owner classes are passed as arguments to other
// templates; Borland "forgets" them from the very beginning (if the owner
// class is a class template).
#if defined(__MWERKS__) && __MWERKS__ <= 0x3001 \
|| defined(__BORLANDC__) && __BORLANDC__ <= 0x560
|| defined(__BORLANDC__) && (__BORLANDC__ <= 0x561 || !defined(BOOST_STRICT_CONFIG)) \
&& !defined(BOOST_BROKEN_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES)
# define BOOST_NO_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES
#endif