From 2f72d5639e4c6856749e7595693a613b2885f18e Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Thu, 9 Jul 2020 18:58:49 +0200 Subject: [PATCH] Assume existance of lambdas --- doc/example/reference.cpp | 8 -------- include/turtle/config.hpp | 6 ------ test/detail/test_is_functor.cpp | 4 ---- 3 files changed, 18 deletions(-) diff --git a/doc/example/reference.cpp b/doc/example/reference.cpp index bb2c4d6..e2e3574 100644 --- a/doc/example/reference.cpp +++ b/doc/example/reference.cpp @@ -623,8 +623,6 @@ BOOST_AUTO_TEST_CASE( demonstrates_adding_a_custom_constraint_with_boost_phoenix //] } -#ifdef MOCK_LAMBDAS - namespace constraints_example_7 { //[ constraints_example_7 @@ -641,8 +639,6 @@ BOOST_AUTO_TEST_CASE( demonstrates_adding_a_constraint_with_cxx11_lambda ) //] } -#endif - namespace constraints_example_8 { //[ constraints_example_8 @@ -711,8 +707,6 @@ BOOST_AUTO_TEST_CASE( demonstrates_enforcing_several_expectation_orders ) //] } -#ifdef MOCK_LAMBDAS - namespace action_example_1 { //[ action_example_1 @@ -739,8 +733,6 @@ BOOST_AUTO_TEST_CASE( demonstrates_configuring_actions ) //] } -#endif - namespace action_example_2 { //[ action_example_2 diff --git a/include/turtle/config.hpp b/include/turtle/config.hpp index dfce9fa..8ca1464 100644 --- a/include/turtle/config.hpp +++ b/include/turtle/config.hpp @@ -46,12 +46,6 @@ # endif #endif -#if !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_NO_LAMBDAS) -# ifndef MOCK_NO_LAMBDAS -# define MOCK_LAMBDAS -# endif -#endif - #if !defined(BOOST_NO_AUTO_PTR) # ifndef MOCK_NO_AUTO_PTR # define MOCK_AUTO_PTR diff --git a/test/detail/test_is_functor.cpp b/test/detail/test_is_functor.cpp index c0f1c22..f45a1e4 100644 --- a/test/detail/test_is_functor.cpp +++ b/test/detail/test_is_functor.cpp @@ -99,8 +99,6 @@ BOOST_AUTO_TEST_CASE( std_function_is_functor ) is_functor( std::function< void(int) >() ); } -#ifdef MOCK_LAMBDAS - BOOST_AUTO_TEST_CASE( cxx11_lambda_is_functor ) { is_not_functor( []() {} ); @@ -108,5 +106,3 @@ BOOST_AUTO_TEST_CASE( cxx11_lambda_is_functor ) is_not_functor( []( const std::string&, int ) {} ); is_not_functor( []( int, const std::string& ) {} ); } - -#endif