Commit 0f9a586c authored by Alexander Karatarakis's avatar Alexander Karatarakis Committed by Jesse Beder
Browse files

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

parent 4fb1c4b9
...@@ -15,7 +15,7 @@ ...@@ -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 @@ ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment