From d5b216db8efdeb07ad5bc80d0c50c2e05c89e9be Mon Sep 17 00:00:00 2001 From: mat007 Date: Sat, 31 May 2014 12:15:38 +0000 Subject: [PATCH] Fixed lambdas conditional compilation git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@754 860be788-9bd5-4423-9f1e-828f051e677b --- build/boost/doc/example/reference.cpp | 2 +- test/detail/test_is_functor.cpp | 2 +- turtle/config.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/boost/doc/example/reference.cpp b/build/boost/doc/example/reference.cpp index f808d0f..76a4535 100644 --- a/build/boost/doc/example/reference.cpp +++ b/build/boost/doc/example/reference.cpp @@ -680,7 +680,7 @@ BOOST_AUTO_TEST_CASE( demonstrates_adding_a_custom_constraint_with_boost_phoenix //] } -#ifndef MOCK_NO_LAMBDAS +#ifdef MOCK_LAMBDAS namespace constraints_example_7 { diff --git a/test/detail/test_is_functor.cpp b/test/detail/test_is_functor.cpp index 5bbdd90..666558d 100644 --- a/test/detail/test_is_functor.cpp +++ b/test/detail/test_is_functor.cpp @@ -142,7 +142,7 @@ BOOST_AUTO_TEST_CASE( class_with_sig_is_functor ) is_functor( sig_functor() ); } -#ifndef MOCK_NO_LAMBDAS +#ifdef MOCK_LAMBDAS BOOST_AUTO_TEST_CASE( cxx11_lambda_is_functor ) { diff --git a/turtle/config.hpp b/turtle/config.hpp index 8cce9fa..c349404 100644 --- a/turtle/config.hpp +++ b/turtle/config.hpp @@ -94,7 +94,7 @@ #if !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_NO_LAMBDAS) # ifndef MOCK_NO_LAMBDAS -# define MOCK_NO_LAMBDAS +# define MOCK_LAMBDAS # endif #endif