Chris@16: // (C) Copyright John Maddock 2001 - 2003. Chris@16: // (C) Copyright Darin Adler 2001 - 2002. Chris@16: // (C) Copyright Peter Dimov 2001. Chris@16: // (C) Copyright Aleksey Gurtovoy 2002. Chris@16: // (C) Copyright David Abrahams 2002 - 2003. Chris@16: // (C) Copyright Beman Dawes 2002 - 2003. Chris@16: // Use, modification and distribution are subject to the Chris@16: // Boost Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for most recent version. Chris@16: // Chris@16: // Microsoft Visual C++ compiler setup: Chris@16: // Chris@16: // We need to be careful with the checks in this file, as contrary Chris@16: // to popular belief there are versions with _MSC_VER with the final Chris@16: // digit non-zero (mainly the MIPS cross compiler). Chris@16: // Chris@16: // So we either test _MSC_VER >= XXXX or else _MSC_VER < XXXX. Chris@16: // No other comparisons (==, >, or <=) are safe. Chris@16: // Chris@16: Chris@16: #define BOOST_MSVC _MSC_VER Chris@16: Chris@16: // Chris@16: // Helper macro BOOST_MSVC_FULL_VER for use in Boost code: Chris@16: // Chris@16: #if _MSC_FULL_VER > 100000000 Chris@16: # define BOOST_MSVC_FULL_VER _MSC_FULL_VER Chris@16: #else Chris@16: # define BOOST_MSVC_FULL_VER (_MSC_FULL_VER * 10) Chris@16: #endif Chris@16: Chris@16: // Attempt to suppress VC6 warnings about the length of decorated names (obsolete): Chris@16: #pragma warning( disable : 4503 ) // warning: decorated name length exceeded Chris@16: Chris@16: #define BOOST_HAS_PRAGMA_ONCE Chris@16: Chris@16: // Chris@16: // versions check: Chris@16: // we don't support Visual C++ prior to version 7.1: Chris@16: #if _MSC_VER < 1310 Chris@16: # error "Compiler not supported or configured - please reconfigure" Chris@16: #endif Chris@16: Chris@16: #if _MSC_FULL_VER < 180020827 Chris@16: # define BOOST_NO_FENV_H Chris@16: #endif Chris@16: Chris@16: #if _MSC_VER < 1400 Chris@16: // although a conforming signature for swprint exists in VC7.1 Chris@16: // it appears not to actually work: Chris@16: # define BOOST_NO_SWPRINTF Chris@16: // Our extern template tests also fail for this compiler: Chris@16: # define BOOST_NO_CXX11_EXTERN_TEMPLATE Chris@16: // Variadic macros do not exist for VC7.1 and lower Chris@16: # define BOOST_NO_CXX11_VARIADIC_MACROS Chris@16: #endif Chris@16: Chris@16: #if _MSC_VER < 1500 // 140X == VC++ 8.0 Chris@16: # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS Chris@16: #endif Chris@16: Chris@16: #if _MSC_VER < 1600 // 150X == VC++ 9.0 Chris@16: // A bug in VC9: Chris@16: # define BOOST_NO_ADL_BARRIER Chris@16: #endif Chris@16: Chris@16: Chris@16: // MSVC (including the latest checked version) has not yet completely Chris@16: // implemented value-initialization, as is reported: Chris@16: // "VC++ does not value-initialize members of derived classes without Chris@16: // user-declared constructor", reported in 2009 by Sylvester Hesp: Chris@16: // https://connect.microsoft.com/VisualStudio/feedback/details/484295 Chris@16: // "Presence of copy constructor breaks member class initialization", Chris@16: // reported in 2009 by Alex Vakulenko: Chris@16: // https://connect.microsoft.com/VisualStudio/feedback/details/499606 Chris@16: // "Value-initialization in new-expression", reported in 2005 by Chris@16: // Pavel Kuznetsov (MetaCommunications Engineering): Chris@16: // https://connect.microsoft.com/VisualStudio/feedback/details/100744 Chris@16: // See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues Chris@16: // (Niels Dekker, LKEB, May 2010) Chris@16: # define BOOST_NO_COMPLETE_VALUE_INITIALIZATION Chris@16: Chris@16: #ifndef _NATIVE_WCHAR_T_DEFINED Chris@16: # define BOOST_NO_INTRINSIC_WCHAR_T Chris@16: #endif Chris@16: Chris@16: // Chris@16: // check for exception handling support: Chris@16: #if !defined(_CPPUNWIND) && !defined(BOOST_NO_EXCEPTIONS) Chris@16: # define BOOST_NO_EXCEPTIONS Chris@16: #endif Chris@16: Chris@16: // Chris@16: // __int64 support: Chris@16: // Chris@16: #define BOOST_HAS_MS_INT64 Chris@16: #if defined(_MSC_EXTENSIONS) || (_MSC_VER >= 1400) Chris@16: # define BOOST_HAS_LONG_LONG Chris@16: #else Chris@16: # define BOOST_NO_LONG_LONG Chris@16: #endif Chris@16: #if (_MSC_VER >= 1400) && !defined(_DEBUG) Chris@16: # define BOOST_HAS_NRVO Chris@16: #endif Chris@101: #if _MSC_VER >= 1600 // 160X == VC++ 10.0 Chris@101: # define BOOST_HAS_PRAGMA_DETECT_MISMATCH Chris@101: #endif Chris@16: // Chris@101: // disable Win32 API's if compiler extensions are Chris@16: // turned off: Chris@16: // Chris@16: #if !defined(_MSC_EXTENSIONS) && !defined(BOOST_DISABLE_WIN32) Chris@16: # define BOOST_DISABLE_WIN32 Chris@16: #endif Chris@16: #if !defined(_CPPRTTI) && !defined(BOOST_NO_RTTI) Chris@16: # define BOOST_NO_RTTI Chris@16: #endif Chris@16: Chris@16: // Chris@16: // TR1 features: Chris@16: // Chris@16: #if _MSC_VER >= 1700 Chris@16: // # define BOOST_HAS_TR1_HASH // don't know if this is true yet. Chris@16: // # define BOOST_HAS_TR1_TYPE_TRAITS // don't know if this is true yet. Chris@16: # define BOOST_HAS_TR1_UNORDERED_MAP Chris@16: # define BOOST_HAS_TR1_UNORDERED_SET Chris@16: #endif Chris@16: Chris@16: // Chris@16: // C++0x features Chris@16: // Chris@16: // See above for BOOST_NO_LONG_LONG Chris@16: Chris@16: // C++ features supported by VC++ 10 (aka 2010) Chris@16: // Chris@16: #if _MSC_VER < 1600 Chris@16: # define BOOST_NO_CXX11_AUTO_DECLARATIONS Chris@16: # define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS Chris@16: # define BOOST_NO_CXX11_LAMBDAS Chris@16: # define BOOST_NO_CXX11_RVALUE_REFERENCES Chris@16: # define BOOST_NO_CXX11_STATIC_ASSERT Chris@16: # define BOOST_NO_CXX11_NULLPTR Chris@16: # define BOOST_NO_CXX11_DECLTYPE Chris@16: #endif // _MSC_VER < 1600 Chris@16: Chris@16: #if _MSC_VER >= 1600 Chris@16: # define BOOST_HAS_STDINT_H Chris@16: #endif Chris@16: Chris@16: // C++11 features supported by VC++ 11 (aka 2012) Chris@16: // Chris@16: #if _MSC_VER < 1700 Chris@101: # define BOOST_NO_CXX11_FINAL Chris@16: # define BOOST_NO_CXX11_RANGE_BASED_FOR Chris@16: # define BOOST_NO_CXX11_SCOPED_ENUMS Chris@16: #endif // _MSC_VER < 1700 Chris@16: Chris@16: // C++11 features supported by VC++ 12 (aka 2013). Chris@16: // Chris@16: #if _MSC_FULL_VER < 180020827 Chris@16: # define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS Chris@16: # define BOOST_NO_CXX11_DELETED_FUNCTIONS Chris@16: # define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS Chris@16: # define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS Chris@16: # define BOOST_NO_CXX11_RAW_LITERALS Chris@16: # define BOOST_NO_CXX11_TEMPLATE_ALIASES Chris@16: # define BOOST_NO_CXX11_TRAILING_RESULT_TYPES Chris@16: # define BOOST_NO_CXX11_VARIADIC_TEMPLATES Chris@16: # define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX Chris@101: # define BOOST_NO_CXX11_DECLTYPE_N3276 Chris@101: #endif Chris@101: Chris@101: // C++11 features supported by VC++ 14 (aka 2015) Preview Chris@101: // Chris@101: #if (_MSC_FULL_VER < 190022310) Chris@101: # define BOOST_NO_CXX11_NOEXCEPT Chris@101: # define BOOST_NO_CXX11_REF_QUALIFIERS Chris@101: # define BOOST_NO_CXX11_USER_DEFINED_LITERALS Chris@101: # define BOOST_NO_CXX11_ALIGNAS Chris@101: # define BOOST_NO_CXX11_INLINE_NAMESPACES Chris@101: # define BOOST_NO_CXX11_CHAR16_T Chris@101: # define BOOST_NO_CXX11_CHAR32_T Chris@101: # define BOOST_NO_CXX11_UNICODE_LITERALS Chris@101: # define BOOST_NO_CXX14_DECLTYPE_AUTO Chris@101: # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES Chris@101: # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION Chris@101: # define BOOST_NO_CXX14_BINARY_LITERALS Chris@101: # define BOOST_NO_CXX14_GENERIC_LAMBDAS Chris@16: #endif Chris@16: Chris@16: // C++11 features not supported by any versions Chris@16: #define BOOST_NO_CXX11_CONSTEXPR Chris@16: #define BOOST_NO_SFINAE_EXPR Chris@16: #define BOOST_NO_TWO_PHASE_NAME_LOOKUP Chris@101: Chris@101: // C++ 14: Chris@101: #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304) Chris@101: # define BOOST_NO_CXX14_AGGREGATE_NSDMI Chris@101: #endif Chris@101: #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304) Chris@101: # define BOOST_NO_CXX14_CONSTEXPR Chris@101: #endif Chris@101: #if (__cplusplus < 201304) // There's no SD6 check for this.... Chris@101: # define BOOST_NO_CXX14_DIGIT_SEPARATORS Chris@101: #endif Chris@101: #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304) Chris@101: # define BOOST_NO_CXX14_VARIABLE_TEMPLATES Chris@101: #endif Chris@16: Chris@16: // Chris@16: // prefix and suffix headers: Chris@16: // Chris@16: #ifndef BOOST_ABI_PREFIX Chris@16: # define BOOST_ABI_PREFIX "boost/config/abi/msvc_prefix.hpp" Chris@16: #endif Chris@16: #ifndef BOOST_ABI_SUFFIX Chris@16: # define BOOST_ABI_SUFFIX "boost/config/abi/msvc_suffix.hpp" Chris@16: #endif Chris@16: Chris@16: #ifndef BOOST_COMPILER Chris@16: // TODO: Chris@16: // these things are mostly bogus. 1200 means version 12.0 of the compiler. The Chris@16: // artificial versions assigned to them only refer to the versions of some IDE Chris@16: // these compilers have been shipped with, and even that is not all of it. Some Chris@16: // were shipped with freely downloadable SDKs, others as crosscompilers in eVC. Chris@16: // IOW, you can't use these 'versions' in any sensible way. Sorry. Chris@16: # if defined(UNDER_CE) Chris@16: # if _MSC_VER < 1400 Chris@16: // Note: I'm not aware of any CE compiler with version 13xx Chris@16: # if defined(BOOST_ASSERT_CONFIG) Chris@16: # error "Unknown EVC++ compiler version - please run the configure tests and report the results" Chris@16: # else Chris@16: # pragma message("Unknown EVC++ compiler version - please run the configure tests and report the results") Chris@16: # endif Chris@16: # elif _MSC_VER < 1500 Chris@16: # define BOOST_COMPILER_VERSION evc8 Chris@16: # elif _MSC_VER < 1600 Chris@16: # define BOOST_COMPILER_VERSION evc9 Chris@16: # elif _MSC_VER < 1700 Chris@16: # define BOOST_COMPILER_VERSION evc10 Chris@16: # elif _MSC_VER < 1800 Chris@16: # define BOOST_COMPILER_VERSION evc11 Chris@16: # elif _MSC_VER < 1900 Chris@16: # define BOOST_COMPILER_VERSION evc12 Chris@101: # elif _MSC_VER < 2000 Chris@101: # define BOOST_COMPILER_VERSION evc14 Chris@16: # else Chris@16: # if defined(BOOST_ASSERT_CONFIG) Chris@16: # error "Unknown EVC++ compiler version - please run the configure tests and report the results" Chris@16: # else Chris@16: # pragma message("Unknown EVC++ compiler version - please run the configure tests and report the results") Chris@16: # endif Chris@16: # endif Chris@16: # else Chris@16: # if _MSC_VER < 1310 Chris@16: // Note: Versions up to 7.0 aren't supported. Chris@16: # define BOOST_COMPILER_VERSION 5.0 Chris@16: # elif _MSC_VER < 1300 Chris@16: # define BOOST_COMPILER_VERSION 6.0 Chris@16: # elif _MSC_VER < 1310 Chris@16: # define BOOST_COMPILER_VERSION 7.0 Chris@16: # elif _MSC_VER < 1400 Chris@16: # define BOOST_COMPILER_VERSION 7.1 Chris@16: # elif _MSC_VER < 1500 Chris@16: # define BOOST_COMPILER_VERSION 8.0 Chris@16: # elif _MSC_VER < 1600 Chris@16: # define BOOST_COMPILER_VERSION 9.0 Chris@16: # elif _MSC_VER < 1700 Chris@16: # define BOOST_COMPILER_VERSION 10.0 Chris@16: # elif _MSC_VER < 1800 Chris@16: # define BOOST_COMPILER_VERSION 11.0 Chris@16: # elif _MSC_VER < 1900 Chris@16: # define BOOST_COMPILER_VERSION 12.0 Chris@101: # elif _MSC_VER < 2000 Chris@101: # define BOOST_COMPILER_VERSION 14.0 Chris@16: # else Chris@16: # define BOOST_COMPILER_VERSION _MSC_VER Chris@16: # endif Chris@16: # endif Chris@16: Chris@16: # define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION) Chris@16: #endif Chris@16: Chris@16: // Chris@101: // last known and checked version is 19.00.22129 (VC14 Preview): Chris@101: #if (_MSC_VER > 1800 && _MSC_FULL_VER > 190022310) Chris@16: # if defined(BOOST_ASSERT_CONFIG) Chris@16: # error "Unknown compiler version - please run the configure tests and report the results" Chris@16: # else Chris@16: # pragma message("Unknown compiler version - please run the configure tests and report the results") Chris@16: # endif Chris@16: #endif