forked from boostorg/config
DigitalMars fixes
[SVN r21242]
This commit is contained in:
28
include/boost/config/compiler/digitalmars.hpp
Normal file
28
include/boost/config/compiler/digitalmars.hpp
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
// Copyright (C) Christof Meerwald 2003
|
||||||
|
// Copyright (C) Dan Watkins 2003
|
||||||
|
//
|
||||||
|
// Use, modification and distribution are subject to the
|
||||||
|
// Boost Software License, Version 1.0. (See accompanying file
|
||||||
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// Digital Mars C++ compiler setup:
|
||||||
|
#define BOOST_COMPILER __DMC_VERSION_STRING__
|
||||||
|
|
||||||
|
#define BOOST_HAS_LONG_LONG
|
||||||
|
|
||||||
|
#define BOOST_NO_TEMPLATE_TEMPLATES
|
||||||
|
//#define NEEDS_PASTING_TOKEN_FOR_JUXTAPOSING
|
||||||
|
|
||||||
|
#define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
|
||||||
|
#define BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS
|
||||||
|
|
||||||
|
// check for exception handling support:
|
||||||
|
#ifndef _CPPUNWIND
|
||||||
|
# define BOOST_NO_EXCEPTIONS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (__DMC__ < 0x833)
|
||||||
|
# if defined(BOOST_ASSERT_CONFIG)
|
||||||
|
# error "Unknown compiler version - please run the configure tests and report the results"
|
||||||
|
# endif
|
||||||
|
#endif
|
@@ -16,6 +16,10 @@
|
|||||||
// Comeau C++
|
// Comeau C++
|
||||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
|
# define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
|
||||||
|
|
||||||
|
#elif defined __DMC__
|
||||||
|
// Digital Mars C++
|
||||||
|
# define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
|
||||||
|
|
||||||
#elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
|
#elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
|
||||||
// Intel
|
// Intel
|
||||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
|
# define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
|
||||||
@@ -77,5 +81,3 @@
|
|||||||
# error "Unknown compiler - please configure and report the results to boost.org"
|
# error "Unknown compiler - please configure and report the results to boost.org"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -99,7 +99,7 @@
|
|||||||
// BCB6 does cause problems. If we detect C++ Builder, then don't define
|
// BCB6 does cause problems. If we detect C++ Builder, then don't define
|
||||||
// BOOST_NO_STDC_NAMESPACE
|
// BOOST_NO_STDC_NAMESPACE
|
||||||
//
|
//
|
||||||
#if !defined(__BORLANDC__)
|
#if !defined(__BORLANDC__) && !defined(__DMC__)
|
||||||
//
|
//
|
||||||
// If STLport is using it's own namespace, and the real names are in
|
// If STLport is using it's own namespace, and the real names are in
|
||||||
// the global namespace, then we duplicate STLport's using declarations
|
// the global namespace, then we duplicate STLport's using declarations
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
# define BOOST_NO_STDC_NAMESPACE
|
# define BOOST_NO_STDC_NAMESPACE
|
||||||
# define BOOST_NO_EXCEPTION_STD_NAMESPACE
|
# define BOOST_NO_EXCEPTION_STD_NAMESPACE
|
||||||
# endif
|
# endif
|
||||||
#elif __BORLANDC__ < 0x560
|
#elif defined(__BORLANDC__) && __BORLANDC__ < 0x560
|
||||||
// STLport doesn't import std::abs correctly:
|
// STLport doesn't import std::abs correctly:
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
namespace std { using ::abs; }
|
namespace std { using ::abs; }
|
||||||
|
30
test/boost_no_array_type_spec.ipp
Normal file
30
test/boost_no_array_type_spec.ipp
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
// (C) Copyright John Maddock 2001.
|
||||||
|
// (C) Copyright Aleksey Gurtovoy 2003.
|
||||||
|
// Use, modification and distribution are subject to the
|
||||||
|
// Boost Software License, Version 1.0. (See accompanying file
|
||||||
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// See http://www.boost.org/libs/config for most recent version.
|
||||||
|
|
||||||
|
// MACRO: BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS
|
||||||
|
// TITLE: template specialisations of array types
|
||||||
|
// DESCRIPTION: If the compiler cannot handle template specialisations
|
||||||
|
// for array types
|
||||||
|
|
||||||
|
|
||||||
|
namespace boost_no_array_type_specializations{
|
||||||
|
|
||||||
|
template< typename T > struct is_array
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
template< typename T, int N > struct is_array< T[N] >
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
int test()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user