diff --git a/modules/core/include/opencv2/core/cvdef.h b/modules/core/include/opencv2/core/cvdef.h index 4d9b797ffb..079f24c12a 100644 --- a/modules/core/include/opencv2/core/cvdef.h +++ b/modules/core/include/opencv2/core/cvdef.h @@ -627,7 +627,7 @@ Cv64suf; \****************************************************************************************/ #ifndef CV_NOEXCEPT -# ifdef CV_CXX11 +# if defined(CV_CXX11) && (!defined(_MSC_VER) || _MSC_VER > 1800) /* MSVC 2015 and above */ # define CV_NOEXCEPT noexcept # endif #endif