mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Assume existance of lambdas
This commit is contained in:
parent
9faab7749c
commit
2f72d5639e
3 changed files with 0 additions and 18 deletions
|
|
@ -623,8 +623,6 @@ BOOST_AUTO_TEST_CASE( demonstrates_adding_a_custom_constraint_with_boost_phoenix
|
||||||
//]
|
//]
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MOCK_LAMBDAS
|
|
||||||
|
|
||||||
namespace constraints_example_7
|
namespace constraints_example_7
|
||||||
{
|
{
|
||||||
//[ 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
|
namespace constraints_example_8
|
||||||
{
|
{
|
||||||
//[ 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
|
namespace action_example_1
|
||||||
{
|
{
|
||||||
//[ action_example_1
|
//[ action_example_1
|
||||||
|
|
@ -739,8 +733,6 @@ BOOST_AUTO_TEST_CASE( demonstrates_configuring_actions )
|
||||||
//]
|
//]
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace action_example_2
|
namespace action_example_2
|
||||||
{
|
{
|
||||||
//[ action_example_2
|
//[ action_example_2
|
||||||
|
|
|
||||||
|
|
@ -46,12 +46,6 @@
|
||||||
# endif
|
# endif
|
||||||
#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)
|
#if !defined(BOOST_NO_AUTO_PTR)
|
||||||
# ifndef MOCK_NO_AUTO_PTR
|
# ifndef MOCK_NO_AUTO_PTR
|
||||||
# define MOCK_AUTO_PTR
|
# define MOCK_AUTO_PTR
|
||||||
|
|
|
||||||
|
|
@ -99,8 +99,6 @@ BOOST_AUTO_TEST_CASE( std_function_is_functor )
|
||||||
is_functor( std::function< void(int) >() );
|
is_functor( std::function< void(int) >() );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MOCK_LAMBDAS
|
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE( cxx11_lambda_is_functor )
|
BOOST_AUTO_TEST_CASE( cxx11_lambda_is_functor )
|
||||||
{
|
{
|
||||||
is_not_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( []( const std::string&, int ) {} );
|
||||||
is_not_functor( []( int, const std::string& ) {} );
|
is_not_functor( []( int, const std::string& ) {} );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue