Fix _NOEXCEPT not available in VS2017 15.8. Use noexcept for VS2015+ (#597)

This commit is contained in:
Alexander Karatarakis
2018-06-30 14:23:28 -07:00
committed by Jesse Beder
parent 4fb1c4b92b
commit 0f9a586ca1
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
// This is here for compatibility with older versions of Visual Studio // This is here for compatibility with older versions of Visual Studio
// which don't support noexcept // which don't support noexcept
#ifdef _MSC_VER #if defined(_MSC_VER) && _MSC_VER < 1900
#define YAML_CPP_NOEXCEPT _NOEXCEPT #define YAML_CPP_NOEXCEPT _NOEXCEPT
#else #else
#define YAML_CPP_NOEXCEPT noexcept #define YAML_CPP_NOEXCEPT noexcept

View File

@@ -2,7 +2,7 @@
// This is here for compatibility with older versions of Visual Studio // This is here for compatibility with older versions of Visual Studio
// which don't support noexcept // which don't support noexcept
#ifdef _MSC_VER #if defined(_MSC_VER) && _MSC_VER < 1900
#define YAML_CPP_NOEXCEPT _NOEXCEPT #define YAML_CPP_NOEXCEPT _NOEXCEPT
#else #else
#define YAML_CPP_NOEXCEPT noexcept #define YAML_CPP_NOEXCEPT noexcept