changeset 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
files dw.hpp dwtestoo.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dw.hpp	Fri Dec 30 01:03:18 2022 +0000
+++ b/dw.hpp	Fri Dec 30 03:29:35 2022 +0000
@@ -17,7 +17,7 @@
 #endif
 
 // Support Lambdas on C++11, Visual C 2010 or GCC 4.5
-#if defined(DW_CPP11) || (defined(_MSC_VER) && _MSC_VER >= 1600) || \
+#if defined(DW_CPP11) || (defined(_MSC_VER) && _MSC_VER >= 1700) || \
     (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4)))
 #define DW_LAMBDA
 #include <functional>
--- a/dwtestoo.cpp	Fri Dec 30 01:03:18 2022 +0000
+++ b/dwtestoo.cpp	Fri Dec 30 03:29:35 2022 +0000
@@ -79,7 +79,7 @@
     app->MessageBox(APP_TITLE, DW_MB_OK | DW_MB_INFORMATION, 
                     "Warning: You are viewing the simplified version of this sample program.\n\n" \
                     "This is because your compiler does not have lambda support.\n\n" \
-                    "Please upgrade to Clang, GCC 4.5 or Visual Studio 2010 to see the full sample.");
+                    "Please upgrade to Clang, GCC 4.5 or Visual Studio 2012 to see the full sample.");
 
     DWTest *window = new DWTest();
     DW::Button *button = new DW::Button("Test window");