mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Fix _NOEXCEPT not available in VS2017 15.8. Use noexcept for VS2015+ (#597)
This commit is contained in:

committed by
Jesse Beder

parent
4fb1c4b92b
commit
0f9a586ca1
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user