Ticket #8750: for_vs2013.patch

File for_vs2013.patch, 6.2 KB (added by arkadiy_s@…, 9 years ago)
  • boost/config/auto_link.hpp

     
    151151     // vc10:
    152152#    define BOOST_LIB_TOOLSET "vc100"
    153153
    154 #  elif defined(BOOST_MSVC)
     154#  elif defined(BOOST_MSVC) && (BOOST_MSVC < 1800)
    155155
    156156     // vc11:
    157157#    define BOOST_LIB_TOOLSET "vc110"
    158158
     159#  elif defined(BOOST_MSVC)
     160
     161     // vc12:
     162#    define BOOST_LIB_TOOLSET "vc120"
     163
    159164#  elif defined(__BORLANDC__)
    160165
    161166     // CBuilder 6:
  • boost/config/compiler/visualc.hpp

     
    218218#endif // _MSC_VER < 1700
    219219
    220220// C++11 features supported by VC++ 11 (aka 2012) November 2012 CTP
    221 // Because the CTP is unsupported, unrelease, and only alpha quality,
    222 // it is only supported if BOOST_MSVC_ENABLE_2012_NOV_CTP is defined.
     221// and VC++ 2013 Preview. Because the CTP is unsupported, unrelease,
     222// and only alpha quality, it is only supported
     223// if BOOST_MSVC_ENABLE_2012_NOV_CTP is defined.
    223224//
    224 #if _MSC_FULL_VER < 170051025 || !defined(BOOST_MSVC_ENABLE_2012_NOV_CTP)
     225#if _MSC_VER < 1800 && !(_MSC_FULL_VER >= 170051025 && defined(BOOST_MSVC_ENABLE_2012_NOV_CTP))
    225226#  define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
    226227#  define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
    227228#  define BOOST_NO_CXX11_RAW_LITERALS
     
    229230#  define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
    230231#endif
    231232
     233// C++11 features supported by VC++ 2013 Preview
     234//
     235#if _MSC_VER < 1800
     236#  define BOOST_NO_CXX11_DECLTYPE_N3276
     237#endif
     238
     239// C++11 features supported by VC++ 2013 RTM
     240//
     241#if _MSC_FULL_VER <= 180020617
     242#  define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
     243#  define BOOST_NO_CXX11_DELETED_FUNCTIONS
     244#  define BOOST_NO_CXX11_TEMPLATE_ALIASES
     245#endif
     246
    232247// C++11 features not supported by any versions
    233248#define BOOST_NO_CXX11_CHAR16_T
    234249#define BOOST_NO_CXX11_CHAR32_T
    235250#define BOOST_NO_CXX11_CONSTEXPR
    236 #define BOOST_NO_CXX11_DECLTYPE_N3276
    237 #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
    238 #define BOOST_NO_CXX11_DELETED_FUNCTIONS
    239251#define BOOST_NO_CXX11_NOEXCEPT
    240 #define BOOST_NO_CXX11_TEMPLATE_ALIASES
    241252#define BOOST_NO_CXX11_UNICODE_LITERALS
    242253#define BOOST_NO_SFINAE_EXPR
    243254#define BOOST_NO_TWO_PHASE_NAME_LOOKUP
     
    280291#     define BOOST_COMPILER_VERSION evc10
    281292#   elif _MSC_VER < 1800
    282293#     define BOOST_COMPILER_VERSION evc11
     294#   elif _MSC_VER < 1900
     295#     define BOOST_COMPILER_VERSION evc12
    283296#   else
    284297#      if defined(BOOST_ASSERT_CONFIG)
    285298#         error "Unknown EVC++ compiler version - please run the configure tests and report the results"
     
    305318#     define BOOST_COMPILER_VERSION 10.0
    306319#   elif _MSC_VER < 1800
    307320#     define BOOST_COMPILER_VERSION 11.0
     321#   elif _MSC_VER < 1900
     322#     define BOOST_COMPILER_VERSION 12.0
    308323#   else
    309324#     define BOOST_COMPILER_VERSION _MSC_VER
    310325#   endif
     
    314329#endif
    315330
    316331//
    317 // last known and checked version is 1700 (VC11, aka 2011):
    318 #if (_MSC_VER > 1700)
     332// last known and checked version is 1800 (VC2013):
     333#if (_MSC_VER > 1800)
    319334#  if defined(BOOST_ASSERT_CONFIG)
    320335#     error "Unknown compiler version - please run the configure tests and report the results"
    321336#  else
  • boost/config/stdlib/dinkumware.hpp

     
    8080#  define BOOST_NO_STD_ITERATOR_TRAITS
    8181#endif
    8282
     83#if defined(_MSC_VER) && (_MSC_VER >= 1800)
     84#  include <algorithm> // for std::min and std::max
     85#endif
     86
    8387#if defined(__ICL) && (__ICL < 800) && defined(_CPPLIB_VER) && (_CPPLIB_VER <= 310)
    8488// Intel C++ chokes over any non-trivial use of <locale>
    8589// this may be an overly restrictive define, but regex fails without it:
  • boost/mpl/assert.hpp

     
    3434#include <boost/config.hpp> // make sure 'size_t' is placed into 'std'
    3535#include <cstddef>
    3636
    37 #if BOOST_WORKAROUND(BOOST_MSVC, == 1700)
     37#if BOOST_WORKAROUND(BOOST_MSVC, >= 1700)
    3838#include <boost/mpl/if.hpp>
    3939#endif
    4040
     
    244244
    245245BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
    246246
    247 #if BOOST_WORKAROUND(BOOST_MSVC, == 1700)
     247#if BOOST_WORKAROUND(BOOST_MSVC, >= 1700)
    248248
    249249// BOOST_MPL_ASSERT((pred<x,...>))
    250250
  • tools/build/v2/tools/msvc.jam

     
    749749            # version from the path.
    750750            # FIXME: We currently detect both Microsoft Visual Studio 9.0 and
    751751            # 9.0express as 9.0 here.
    752             if [ MATCH "(Microsoft Visual Studio 11)" : $(command) ]
     752            if [ MATCH "(Microsoft Visual Studio 12)" : $(command) ]
    753753            {
     754                version = 12.0 ;
     755            }
     756            else if [ MATCH "(Microsoft Visual Studio 11)" : $(command) ]
     757            {
    754758                version = 11.0 ;
    755759            }
    756760            else if [ MATCH "(Microsoft Visual Studio 10)" : $(command) ]
     
    13851389
    13861390
    13871391# Known toolset versions, in order of preference.
    1388 .known-versions = 11.0 10.0 10.0express 9.0 9.0express 8.0 8.0express 7.1
     1392.known-versions = 12.0 11.0 10.0 10.0express 9.0 9.0express 8.0 8.0express 7.1
    13891393    7.1toolkit 7.0 6.0 ;
    13901394
    13911395# Version aliases.
     
    13961400.version-alias-9 = 9.0 ;
    13971401.version-alias-10 = 10.0 ;
    13981402.version-alias-11 = 11.0 ;
     1403.version-alias-12 = 12.0 ;
    13991404
    14001405# Names of registry keys containing the Visual C++ installation path (relative
    14011406# to "HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft").
     
    14091414.version-10.0-reg = "VisualStudio\\10.0\\Setup\\VC" ;
    14101415.version-10.0express-reg = "VCExpress\\10.0\\Setup\\VC" ;
    14111416.version-11.0-reg = "VisualStudio\\11.0\\Setup\\VC" ;
     1417.version-12.0-reg = "VisualStudio\\12.0\\Setup\\VC" ;
    14121418
    14131419# Visual C++ Toolkit 2003 does not store its installation path in the registry.
    14141420# The environment variable 'VCToolkitInstallDir' and the default installation