From 695fa0b37141fc7994c1293c060a051adb83689e Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Fri, 19 Jan 2018 11:54:19 -0700 Subject: [PATCH] Proper fix for noexcept/msvc2017 From @StephanTLavavej --- include/chaiscript/dispatchkit/register_function.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/chaiscript/dispatchkit/register_function.hpp b/include/chaiscript/dispatchkit/register_function.hpp index 2206b024..e5dec699 100644 --- a/include/chaiscript/dispatchkit/register_function.hpp +++ b/include/chaiscript/dispatchkit/register_function.hpp @@ -86,7 +86,7 @@ namespace chaiscript // only compile this bit if noexcept is part of the type system // -#if __cpp_noexcept_function_type >= 201510 || (_MSVC_LANG > 201403L && _MSC_VER >= 1912) +#if __cpp_noexcept_function_type >= 201510 || (defined(_NOEXCEPT_TYPES_SUPPORTED) && _MSC_VER >= 1912) template Proxy_Function fun(Ret (*func)(Param...) noexcept) {