From 3733437749121787b7f9b6f79a039f5a3a5b1b3d Mon Sep 17 00:00:00 2001 From: Martin Moene Date: Sat, 11 Jan 2020 20:03:31 +0100 Subject: [PATCH] [skip ci] Improve MSVC version table (nonstd-lite-project issue 38) https://github.com/martinmoene/nonstd-lite-project/issues/38 --- include/nonstd/ring_span.hpp | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/include/nonstd/ring_span.hpp b/include/nonstd/ring_span.hpp index e635f18..8c49311 100644 --- a/include/nonstd/ring_span.hpp +++ b/include/nonstd/ring_span.hpp @@ -77,19 +77,20 @@ // Compiler versions: // -// MSVC++ 6.0 _MSC_VER == 1200 (Visual Studio 6.0) -// MSVC++ 7.0 _MSC_VER == 1300 (Visual Studio .NET 2002) -// MSVC++ 7.1 _MSC_VER == 1310 (Visual Studio .NET 2003) -// MSVC++ 8.0 _MSC_VER == 1400 (Visual Studio 2005) -// MSVC++ 9.0 _MSC_VER == 1500 (Visual Studio 2008) -// MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010) -// MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012) -// MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013) -// MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015) -// ............_MSVC_LANG: 201402 for -std:c++14, default -// MSVC++ 14.1 _MSC_VER >= 1910 (Visual Studio 2017) -// ............_MSVC_LANG: 201402 for -std:c++14, default -// ............_MSVC_LANG: 201703 for -std:c++17 +// MSVC++ 6.0 _MSC_VER == 1200 nsrs_COMPILER_MSVC_VERSION == 60 (Visual Studio 6.0) +// MSVC++ 7.0 _MSC_VER == 1300 nsrs_COMPILER_MSVC_VERSION == 70 (Visual Studio .NET 2002) +// MSVC++ 7.1 _MSC_VER == 1310 nsrs_COMPILER_MSVC_VERSION == 71 (Visual Studio .NET 2003) +// MSVC++ 8.0 _MSC_VER == 1400 nsrs_COMPILER_MSVC_VERSION == 80 (Visual Studio 2005) +// MSVC++ 9.0 _MSC_VER == 1500 nsrs_COMPILER_MSVC_VERSION == 90 (Visual Studio 2008) +// MSVC++ 10.0 _MSC_VER == 1600 nsrs_COMPILER_MSVC_VERSION == 100 (Visual Studio 2010) +// MSVC++ 11.0 _MSC_VER == 1700 nsrs_COMPILER_MSVC_VERSION == 110 (Visual Studio 2012) +// MSVC++ 12.0 _MSC_VER == 1800 nsrs_COMPILER_MSVC_VERSION == 120 (Visual Studio 2013) +// MSVC++ 14.0 _MSC_VER == 1900 nsrs_COMPILER_MSVC_VERSION == 140 (Visual Studio 2015) +// ............ _MSVC_LANG: 201402 for -std:c++14, default +// MSVC++ 14.1 _MSC_VER >= 1910 nsrs_COMPILER_MSVC_VERSION == 141 (Visual Studio 2017) +// ............ _MSVC_LANG: 201402 for -std:c++14, default +// ............ _MSVC_LANG: 201703 for -std:c++17 +// MSVC++ 14.2 _MSC_VER >= 1920 nsrs_COMPILER_MSVC_VERSION == 142 (Visual Studio 2019) #if defined(_MSC_VER ) && !defined(__clang__) # define nsrs_COMPILER_MSVC_VER (_MSC_VER )