[libsigc++2] Tests: Enable C++11 lambda expressions with MS Visual Studio 2012 and later



commit a64385ca50b04f17b5edc35b75d83281d503e383
Author: Ryan Beasley <rbeasley vmware com>
Date:   Tue Jul 29 09:28:13 2014 +0200

    Tests: Enable C++11 lambda expressions with MS Visual Studio 2012 and later
    
    * tests/test_cpp11_lambda.cc:
    * tests/test_track_obj.cc: Compile C++11 lambda expressions if
    _MSC_VER >= 1700. Bug #733752.

 tests/test_cpp11_lambda.cc |    2 +-
 tests/test_track_obj.cc    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/test_cpp11_lambda.cc b/tests/test_cpp11_lambda.cc
index 068e1f5..e9b2ba7 100644
--- a/tests/test_cpp11_lambda.cc
+++ b/tests/test_cpp11_lambda.cc
@@ -42,7 +42,7 @@
 //   echo $?
 // If test_cpp11_lambda writes nothing and the return code is 0, the test has passed.
 
-#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
+#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || _MSC_VER >= 1700
 #  define USING_CPP11_LAMBDA_EXPRESSIONS
 #endif
 
diff --git a/tests/test_track_obj.cc b/tests/test_track_obj.cc
index 80fcd59..9807e95 100644
--- a/tests/test_track_obj.cc
+++ b/tests/test_track_obj.cc
@@ -33,7 +33,7 @@
 //   echo $?
 // If test_track_obj writes nothing and the return code is 0, the test has passed.
 
-#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
+#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || _MSC_VER >= 1700
 #  define USING_CPP11_LAMBDA_EXPRESSIONS
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]