|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81311 - trunk/libs/test/test/test_datasets_src
From: gennadiy.rozental_at_[hidden]
Date: 2012-11-12 14:48:22
Author: rogeeff
Date: 2012-11-12 14:48:22 EST (Mon, 12 Nov 2012)
New Revision: 81311
URL: http://svn.boost.org/trac/boost/changeset/81311
Log:
added more #ifndef BOOST_NO_CXX11_LAMBDAS
Text files modified:
trunk/libs/test/test/test_datasets_src/test_mono_join.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/libs/test/test/test_datasets_src/test_mono_join.cpp
==============================================================================
--- trunk/libs/test/test/test_datasets_src/test_mono_join.cpp (original)
+++ trunk/libs/test/test/test_datasets_src/test_mono_join.cpp 2012-11-12 14:48:22 EST (Mon, 12 Nov 2012)
@@ -47,10 +47,12 @@
data::for_each_sample( samples1, ic );
BOOST_TEST( ic.m_value == 6 );
+#ifndef BOOST_NO_CXX11_LAMBDAS
c = 0;
data::for_each_sample( samples1, [&c,exp](int i) {
BOOST_TEST( i == exp[c++] );
});
+#endif
auto samples2 = data::make( std::vector<int>(arr1,arr1+2) ) + (data::make( 5 ) + (data::make( arr2 ) + data::make( 37 )));
@@ -58,10 +60,12 @@
data::for_each_sample( samples2, ic );
BOOST_TEST( ic.m_value == 6 );
+#ifndef BOOST_NO_CXX11_LAMBDAS
c = 0;
data::for_each_sample( samples2, [&c,exp](int i) {
BOOST_TEST( i == exp[c++] );
});
+#endif
auto samples3 = (data::make( std::vector<int>(arr1,arr1+2) ) + data::make( 5 )) + (data::make( arr2 ) + data::make( 37 ));
@@ -69,11 +73,13 @@
data::for_each_sample( samples3, ic );
BOOST_TEST( ic.m_value == 6 );
+#ifndef BOOST_NO_CXX11_LAMBDAS
c = 0;
data::for_each_sample( samples3, [&c,exp](int i) {
BOOST_TEST( i == exp[c++] );
});
#endif
+#endif
copy_count::value() = 0;
data::for_each_sample( data::make( copy_count() ) + data::make( copy_count() ), check_arg_type<copy_count>() );
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk