comparison dw.hpp @ 2927:03167ee949fd

C++: Bump the required compiler version to Visual Studio 2012. 2010's lambda support is too immature to be usable... 2015 worked. I don't have 2012 or 2013 installed to test, might need to be 2015.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 30 Dec 2022 03:29:35 +0000
parents 5b584c5ddc96
children 102b96d77f89
comparison
equal deleted inserted replaced
2926:5b584c5ddc96 2927:03167ee949fd
15 #else 15 #else
16 #define DW_NULL NULL 16 #define DW_NULL NULL
17 #endif 17 #endif
18 18
19 // Support Lambdas on C++11, Visual C 2010 or GCC 4.5 19 // Support Lambdas on C++11, Visual C 2010 or GCC 4.5
20 #if defined(DW_CPP11) || (defined(_MSC_VER) && _MSC_VER >= 1600) || \ 20 #if defined(DW_CPP11) || (defined(_MSC_VER) && _MSC_VER >= 1700) || \
21 (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))) 21 (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4)))
22 #define DW_LAMBDA 22 #define DW_LAMBDA
23 #include <functional> 23 #include <functional>
24 #endif 24 #endif
25 25