2003-10-04 11:29:20 +00:00
|
|
|
// (C) Copyright John Maddock 2001 - 2003.
|
|
|
|
|
// (C) Copyright Darin Adler 2001 - 2002.
|
|
|
|
|
// (C) Copyright Peter Dimov 2001.
|
|
|
|
|
// (C) Copyright Aleksey Gurtovoy 2002.
|
|
|
|
|
// (C) Copyright David Abrahams 2002 - 2003.
|
|
|
|
|
// (C) Copyright Beman Dawes 2002 - 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)
|
2001-09-18 11:13:39 +00:00
|
|
|
|
|
|
|
|
// See http://www.boost.org for most recent version.
|
|
|
|
|
|
|
|
|
|
// Microsoft Visual C++ compiler setup:
|
|
|
|
|
|
|
|
|
|
#define BOOST_MSVC _MSC_VER
|
|
|
|
|
|
2009-08-06 09:13:09 +00:00
|
|
|
#if _MSC_FULL_VER > 100000000
|
|
|
|
|
# define BOOST_MSVC_FULL_VER _MSC_FULL_VER
|
|
|
|
|
#else
|
|
|
|
|
# define BOOST_MSVC_FULL_VER (_MSC_FULL_VER * 10)
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-09-18 11:13:39 +00:00
|
|
|
// turn off the warnings before we #include anything
|
|
|
|
|
#pragma warning( disable : 4503 ) // warning: decorated name length exceeded
|
|
|
|
|
|
2005-08-25 16:27:28 +00:00
|
|
|
#if _MSC_VER < 1300 // 1200 == VC++ 6.0, 1200-1202 == eVC++4
|
|
|
|
|
# pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
|
2001-09-25 19:17:47 +00:00
|
|
|
# define BOOST_NO_VOID_RETURNS
|
2002-09-15 19:28:13 +00:00
|
|
|
# define BOOST_NO_EXCEPTION_STD_NAMESPACE
|
2008-11-03 18:37:49 +00:00
|
|
|
|
|
|
|
|
# if BOOST_MSVC == 1202
|
|
|
|
|
# define BOOST_NO_STD_TYPEINFO
|
|
|
|
|
# endif
|
|
|
|
|
|
2002-03-28 12:45:03 +00:00
|
|
|
// disable min/max macro defines on vc6:
|
|
|
|
|
//
|
|
|
|
|
#endif
|
2001-09-18 11:13:39 +00:00
|
|
|
|
2003-04-06 10:39:55 +00:00
|
|
|
#if (_MSC_VER <= 1300) // 1300 == VC++ 7.0
|
2002-04-22 09:36:25 +00:00
|
|
|
|
2005-08-25 16:27:28 +00:00
|
|
|
# if !defined(_MSC_EXTENSIONS) && !defined(BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS) // VC7 bug with /Za
|
|
|
|
|
# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
|
|
|
|
|
# endif
|
2002-04-22 09:36:25 +00:00
|
|
|
|
2003-12-17 12:14:15 +00:00
|
|
|
# define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
|
|
|
|
|
# define BOOST_NO_PRIVATE_IN_AGGREGATE
|
|
|
|
|
# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
|
|
|
|
|
# define BOOST_NO_INTEGRAL_INT64_T
|
2003-04-08 14:06:01 +00:00
|
|
|
# define BOOST_NO_DEDUCED_TYPENAME
|
2003-05-25 10:53:26 +00:00
|
|
|
# define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
|
2001-09-18 11:13:39 +00:00
|
|
|
|
|
|
|
|
// VC++ 6/7 has member templates but they have numerous problems including
|
|
|
|
|
// cases of silent failure, so for safety we define:
|
|
|
|
|
# define BOOST_NO_MEMBER_TEMPLATES
|
|
|
|
|
// For VC++ experts wishing to attempt workarounds, we define:
|
|
|
|
|
# define BOOST_MSVC6_MEMBER_TEMPLATES
|
|
|
|
|
|
|
|
|
|
# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
|
|
|
|
# define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
|
|
|
|
# define BOOST_NO_CV_VOID_SPECIALIZATIONS
|
2001-09-25 19:17:47 +00:00
|
|
|
# define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_NO_USING_TEMPLATE
|
|
|
|
|
# define BOOST_NO_SWPRINTF
|
2002-05-20 11:28:22 +00:00
|
|
|
# define BOOST_NO_TEMPLATE_TEMPLATES
|
2003-12-03 19:26:15 +00:00
|
|
|
# define BOOST_NO_SFINAE
|
2004-06-22 12:33:06 +00:00
|
|
|
# define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
|
2004-12-04 11:36:36 +00:00
|
|
|
# define BOOST_NO_IS_ABSTRACT
|
2007-09-10 17:18:16 +00:00
|
|
|
# define BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS
|
2010-05-12 12:34:45 +00:00
|
|
|
# define BOOST_NO_EXTERN_TEMPLATE
|
2005-08-25 16:27:28 +00:00
|
|
|
// TODO: what version is meant here? Have there really been any fixes in cl 12.01 (as e.g. shipped with eVC4)?
|
2002-05-20 11:28:22 +00:00
|
|
|
# if (_MSC_VER > 1200)
|
|
|
|
|
# define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
|
2001-09-18 11:13:39 +00:00
|
|
|
# endif
|
|
|
|
|
|
2002-04-22 09:36:25 +00:00
|
|
|
#endif
|
|
|
|
|
|
2005-12-12 13:38:32 +00:00
|
|
|
#if _MSC_VER < 1400
|
|
|
|
|
// although a conforming signature for swprint exists in VC7.1
|
|
|
|
|
// it appears not to actually work:
|
2002-04-22 09:36:25 +00:00
|
|
|
# define BOOST_NO_SWPRINTF
|
|
|
|
|
#endif
|
|
|
|
|
|
2007-11-24 20:30:50 +00:00
|
|
|
#if defined(UNDER_CE)
|
|
|
|
|
// Windows CE does not have a conforming signature for swprintf
|
|
|
|
|
# define BOOST_NO_SWPRINTF
|
|
|
|
|
#endif
|
|
|
|
|
|
2004-08-12 01:24:36 +00:00
|
|
|
#if _MSC_VER <= 1400 // 1400 == VC++ 8.0
|
2003-02-21 22:08:01 +00:00
|
|
|
# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
2007-11-07 17:17:39 +00:00
|
|
|
#endif
|
|
|
|
|
|
2008-10-29 17:11:50 +00:00
|
|
|
#if _MSC_VER <= 1600 // 1600 == VC++ 10.0
|
2007-09-10 17:18:16 +00:00
|
|
|
# define BOOST_NO_TWO_PHASE_NAME_LOOKUP
|
2003-02-21 22:08:01 +00:00
|
|
|
#endif
|
|
|
|
|
|
2008-03-28 17:03:42 +00:00
|
|
|
#if _MSC_VER == 1500 // 1500 == VC++ 9.0
|
|
|
|
|
// A bug in VC9:
|
|
|
|
|
# define BOOST_NO_ADL_BARRIER
|
|
|
|
|
#endif
|
|
|
|
|
|
2010-05-17 16:24:58 +00:00
|
|
|
|
2010-05-19 09:54:06 +00:00
|
|
|
#if (_MSC_VER <= 1600)
|
|
|
|
|
// MSVC (including the latest checked version) has not yet completely
|
|
|
|
|
// implemented value-initialization, as is reported:
|
2010-05-05 20:46:41 +00:00
|
|
|
// "VC++ does not value-initialize members of derived classes without
|
|
|
|
|
// user-declared constructor", reported in 2009 by Sylvester Hesp:
|
|
|
|
|
// https://connect.microsoft.com/VisualStudio/feedback/details/484295
|
2010-05-19 09:54:06 +00:00
|
|
|
// "Presence of copy constructor breaks member class initialization",
|
|
|
|
|
// reported in 2009 by Alex Vakulenko:
|
|
|
|
|
// https://connect.microsoft.com/VisualStudio/feedback/details/499606
|
2010-05-05 20:46:41 +00:00
|
|
|
// "Value-initialization in new-expression", reported in 2005 by
|
|
|
|
|
// Pavel Kuznetsov (MetaCommunications Engineering):
|
|
|
|
|
// https://connect.microsoft.com/VisualStudio/feedback/details/100744
|
|
|
|
|
// See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues
|
|
|
|
|
// (Niels Dekker, LKEB, May 2010)
|
|
|
|
|
#define BOOST_NO_COMPLETE_VALUE_INITIALIZATION
|
2010-05-17 16:24:58 +00:00
|
|
|
#endif
|
2010-05-05 20:46:41 +00:00
|
|
|
|
2008-12-04 21:30:19 +00:00
|
|
|
#if _MSC_VER <= 1500 || !defined(BOOST_STRICT_CONFIG) // 1500 == VC++ 9.0
|
|
|
|
|
# define BOOST_NO_INITIALIZER_LISTS
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-09-18 11:13:39 +00:00
|
|
|
#ifndef _NATIVE_WCHAR_T_DEFINED
|
|
|
|
|
# define BOOST_NO_INTRINSIC_WCHAR_T
|
|
|
|
|
#endif
|
|
|
|
|
|
2007-11-24 12:25:25 +00:00
|
|
|
#if defined(_WIN32_WCE) || defined(UNDER_CE)
|
2004-07-10 12:31:09 +00:00
|
|
|
# define BOOST_NO_THREADEX
|
|
|
|
|
# define BOOST_NO_GETSYSTEMTIMEASFILETIME
|
2007-11-24 12:25:25 +00:00
|
|
|
# define BOOST_NO_SWPRINTF
|
2004-07-10 12:31:09 +00:00
|
|
|
#endif
|
|
|
|
|
|
2002-04-03 10:29:32 +00:00
|
|
|
//
|
|
|
|
|
// check for exception handling support:
|
2010-05-05 17:55:15 +00:00
|
|
|
#if !defined(_CPPUNWIND) && !defined(BOOST_NO_EXCEPTIONS)
|
2002-04-03 10:29:32 +00:00
|
|
|
# define BOOST_NO_EXCEPTIONS
|
|
|
|
|
#endif
|
|
|
|
|
|
2002-05-07 11:24:29 +00:00
|
|
|
//
|
|
|
|
|
// __int64 support:
|
|
|
|
|
//
|
2003-08-30 10:14:12 +00:00
|
|
|
#if (_MSC_VER >= 1200)
|
2002-05-07 11:24:29 +00:00
|
|
|
# define BOOST_HAS_MS_INT64
|
|
|
|
|
#endif
|
2010-02-04 11:15:54 +00:00
|
|
|
#if (_MSC_VER >= 1310) && (defined(_MSC_EXTENSIONS) || (_MSC_VER >= 1400))
|
2002-09-06 10:16:56 +00:00
|
|
|
# define BOOST_HAS_LONG_LONG
|
2009-02-25 18:04:27 +00:00
|
|
|
#else
|
|
|
|
|
# define BOOST_NO_LONG_LONG
|
2002-09-06 10:16:56 +00:00
|
|
|
#endif
|
2005-12-12 13:38:32 +00:00
|
|
|
#if (_MSC_VER >= 1400) && !defined(_DEBUG)
|
|
|
|
|
# define BOOST_HAS_NRVO
|
|
|
|
|
#endif
|
2002-05-07 11:24:29 +00:00
|
|
|
//
|
2002-05-09 11:40:52 +00:00
|
|
|
// disable Win32 API's if compiler extentions are
|
|
|
|
|
// turned off:
|
|
|
|
|
//
|
2009-05-19 11:39:24 +00:00
|
|
|
#if !defined(_MSC_EXTENSIONS) && !defined(BOOST_DISABLE_WIN32)
|
2002-05-09 11:40:52 +00:00
|
|
|
# define BOOST_DISABLE_WIN32
|
|
|
|
|
#endif
|
2009-05-19 11:39:24 +00:00
|
|
|
#if !defined(_CPPRTTI) && !defined(BOOST_NO_RTTI)
|
2008-08-25 10:06:15 +00:00
|
|
|
# define BOOST_NO_RTTI
|
|
|
|
|
#endif
|
2002-05-07 11:24:29 +00:00
|
|
|
|
2003-08-12 11:21:26 +00:00
|
|
|
//
|
2009-02-25 18:04:27 +00:00
|
|
|
// C++0x features
|
|
|
|
|
//
|
|
|
|
|
// See above for BOOST_NO_LONG_LONG
|
2009-05-21 15:16:39 +00:00
|
|
|
|
|
|
|
|
// C++ features supported by VC++ 10 (aka 2010)
|
|
|
|
|
//
|
|
|
|
|
#if _MSC_VER < 1600
|
|
|
|
|
#define BOOST_NO_AUTO_DECLARATIONS
|
|
|
|
|
#define BOOST_NO_AUTO_MULTIDECLARATIONS
|
|
|
|
|
#define BOOST_NO_LAMBDAS
|
|
|
|
|
#define BOOST_NO_RVALUE_REFERENCES
|
|
|
|
|
#define BOOST_NO_STATIC_ASSERT
|
2010-04-20 17:26:06 +00:00
|
|
|
#define BOOST_NO_NULLPTR
|
2009-05-21 15:16:39 +00:00
|
|
|
#endif // _MSC_VER < 1600
|
2010-05-18 12:02:23 +00:00
|
|
|
#if _MSC_VER >= 1600
|
|
|
|
|
#define BOOST_HAS_STDINT_H
|
|
|
|
|
#endif
|
2009-05-21 15:16:39 +00:00
|
|
|
|
|
|
|
|
// C++0x features not supported by any versions
|
2010-04-21 08:49:21 +00:00
|
|
|
#define BOOST_NO_CHAR16_T
|
|
|
|
|
#define BOOST_NO_CHAR32_T
|
2009-05-15 17:08:26 +00:00
|
|
|
#define BOOST_NO_CONCEPTS
|
2009-03-12 14:48:49 +00:00
|
|
|
#define BOOST_NO_CONSTEXPR
|
|
|
|
|
#define BOOST_NO_DEFAULTED_FUNCTIONS
|
2010-04-20 17:26:06 +00:00
|
|
|
#define BOOST_NO_DECLTYPE
|
2009-03-12 14:48:49 +00:00
|
|
|
#define BOOST_NO_DELETED_FUNCTIONS
|
|
|
|
|
#define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
|
2009-08-02 14:00:59 +00:00
|
|
|
#define BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
|
2010-04-21 08:49:21 +00:00
|
|
|
#define BOOST_NO_INITIALIZER_LISTS
|
2009-03-12 14:48:49 +00:00
|
|
|
#define BOOST_NO_RAW_LITERALS
|
|
|
|
|
#define BOOST_NO_SCOPED_ENUMS
|
2009-08-02 14:00:59 +00:00
|
|
|
#define BOOST_NO_SFINAE_EXPR
|
2009-05-15 17:08:26 +00:00
|
|
|
#define BOOST_NO_TEMPLATE_ALIASES
|
2009-03-12 14:48:49 +00:00
|
|
|
#define BOOST_NO_UNICODE_LITERALS
|
|
|
|
|
#define BOOST_NO_VARIADIC_TEMPLATES
|
2009-02-25 18:04:27 +00:00
|
|
|
//
|
2003-08-12 11:21:26 +00:00
|
|
|
// prefix and suffix headers:
|
|
|
|
|
//
|
|
|
|
|
#ifndef BOOST_ABI_PREFIX
|
|
|
|
|
# define BOOST_ABI_PREFIX "boost/config/abi/msvc_prefix.hpp"
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef BOOST_ABI_SUFFIX
|
|
|
|
|
# define BOOST_ABI_SUFFIX "boost/config/abi/msvc_suffix.hpp"
|
|
|
|
|
#endif
|
|
|
|
|
|
2005-08-25 16:27:28 +00:00
|
|
|
// TODO:
|
|
|
|
|
// these things are mostly bogus. 1200 means version 12.0 of the compiler. The
|
|
|
|
|
// artificial versions assigned to them only refer to the versions of some IDE
|
|
|
|
|
// these compilers have been shipped with, and even that is not all of it. Some
|
|
|
|
|
// were shipped with freely downloadable SDKs, others as crosscompilers in eVC.
|
|
|
|
|
// IOW, you can't use these 'versions' in any sensible way. Sorry.
|
|
|
|
|
# if defined(UNDER_CE)
|
|
|
|
|
# if _MSC_VER < 1200
|
|
|
|
|
// Note: these are so far off, they are not really supported
|
|
|
|
|
# elif _MSC_VER < 1300 // eVC++ 4 comes with 1200-1202
|
|
|
|
|
# define BOOST_COMPILER_VERSION evc4.0
|
2006-01-13 10:48:08 +00:00
|
|
|
# elif _MSC_VER == 1400
|
|
|
|
|
# define BOOST_COMPILER_VERSION evc8
|
2009-03-03 10:06:46 +00:00
|
|
|
# elif _MSC_VER == 1500
|
|
|
|
|
# define BOOST_COMPILER_VERSION evc9
|
|
|
|
|
# elif _MSC_VER == 1600
|
|
|
|
|
# define BOOST_COMPILER_VERSION evc10
|
2005-08-25 16:27:28 +00:00
|
|
|
# else
|
2005-12-16 14:08:34 +00:00
|
|
|
# if defined(BOOST_ASSERT_CONFIG)
|
|
|
|
|
# error "Unknown EVC++ compiler version - please run the configure tests and report the results"
|
|
|
|
|
# else
|
|
|
|
|
# pragma message("Unknown EVC++ compiler version - please run the configure tests and report the results")
|
|
|
|
|
# endif
|
2005-08-25 16:27:28 +00:00
|
|
|
# endif
|
2002-07-23 19:47:15 +00:00
|
|
|
# else
|
2005-08-25 16:27:28 +00:00
|
|
|
# if _MSC_VER < 1200
|
|
|
|
|
// Note: these are so far off, they are not really supported
|
|
|
|
|
# define BOOST_COMPILER_VERSION 5.0
|
|
|
|
|
# elif _MSC_VER < 1300
|
|
|
|
|
# define BOOST_COMPILER_VERSION 6.0
|
|
|
|
|
# elif _MSC_VER == 1300
|
|
|
|
|
# define BOOST_COMPILER_VERSION 7.0
|
|
|
|
|
# elif _MSC_VER == 1310
|
|
|
|
|
# define BOOST_COMPILER_VERSION 7.1
|
|
|
|
|
# elif _MSC_VER == 1400
|
|
|
|
|
# define BOOST_COMPILER_VERSION 8.0
|
2007-11-07 17:17:39 +00:00
|
|
|
# elif _MSC_VER == 1500
|
|
|
|
|
# define BOOST_COMPILER_VERSION 9.0
|
2008-10-29 17:11:50 +00:00
|
|
|
# elif _MSC_VER == 1600
|
|
|
|
|
# define BOOST_COMPILER_VERSION 10.0
|
2005-08-25 16:27:28 +00:00
|
|
|
# else
|
|
|
|
|
# define BOOST_COMPILER_VERSION _MSC_VER
|
|
|
|
|
# endif
|
2002-07-23 19:47:15 +00:00
|
|
|
# endif
|
2002-05-07 11:24:29 +00:00
|
|
|
|
2002-07-23 19:47:15 +00:00
|
|
|
#define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION)
|
2001-09-18 11:13:39 +00:00
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// versions check:
|
|
|
|
|
// we don't support Visual C++ prior to version 6:
|
|
|
|
|
#if _MSC_VER < 1200
|
|
|
|
|
#error "Compiler not supported or configured - please reconfigure"
|
|
|
|
|
#endif
|
|
|
|
|
//
|
2009-05-21 15:16:39 +00:00
|
|
|
// last known and checked version is 1600 (VC10, aka 2010):
|
2008-10-29 17:11:50 +00:00
|
|
|
#if (_MSC_VER > 1600)
|
2001-09-18 11:13:39 +00:00
|
|
|
# if defined(BOOST_ASSERT_CONFIG)
|
|
|
|
|
# error "Unknown compiler version - please run the configure tests and report the results"
|
|
|
|
|
# else
|
2002-03-11 01:23:15 +00:00
|
|
|
# pragma message("Unknown compiler version - please run the configure tests and report the results")
|
2001-09-18 11:13:39 +00:00
|
|
|
# endif
|
|
|
|
|
#endif
|