From 729848caeb8f519645cb8b924a628b5571d7de2d Mon Sep 17 00:00:00 2001 From: Joe Howse Date: Thu, 20 Jun 2019 13:56:29 -0300 Subject: [PATCH] core: revise syntax to support Visual C++ 2013 --- modules/core/include/opencv2/core/cvstd_wrapper.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/core/include/opencv2/core/cvstd_wrapper.hpp b/modules/core/include/opencv2/core/cvstd_wrapper.hpp index 027639bb00..e2c2ea5076 100644 --- a/modules/core/include/opencv2/core/cvstd_wrapper.hpp +++ b/modules/core/include/opencv2/core/cvstd_wrapper.hpp @@ -49,7 +49,12 @@ private: typedef decltype(check(0)) type; public: +#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900/*MSVS 2015*/) static CV_CONSTEXPR bool value = type::value; +#else + // support MSVS 2013 + static const int value = type::value; +#endif }; } // namespace sfinae