# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1672373727 0 # Node ID 102b96d77f89bf01d2d95d4d9f07bc336f74ad5a # Parent 03167ee949fda0c02da8d4b5cbcda71394dc4c35 C++: Visual Studio 2013 lambda support also did not work, bump to 2015. My Windows 8.1 virtual machine had 2012 and 2013 versions, but did not work. diff -r 03167ee949fd -r 102b96d77f89 dw.hpp --- a/dw.hpp Fri Dec 30 03:29:35 2022 +0000 +++ b/dw.hpp Fri Dec 30 04:15:27 2022 +0000 @@ -16,8 +16,8 @@ #define DW_NULL NULL #endif -// Support Lambdas on C++11, Visual C 2010 or GCC 4.5 -#if defined(DW_CPP11) || (defined(_MSC_VER) && _MSC_VER >= 1700) || \ +// Support Lambdas on C++11, Visual C 2015 or GCC 4.5 +#if defined(DW_CPP11) || (defined(_MSC_VER) && _MSC_VER >= 1900) || \ (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))) #define DW_LAMBDA #include diff -r 03167ee949fd -r 102b96d77f89 dwtestoo.cpp --- a/dwtestoo.cpp Fri Dec 30 03:29:35 2022 +0000 +++ b/dwtestoo.cpp Fri Dec 30 04:15:27 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 2012 to see the full sample."); + "Please upgrade to Clang, GCC 4.5 or Visual Studio 2015 to see the full sample."); DWTest *window = new DWTest(); DW::Button *button = new DW::Button("Test window");