From d65bfa94ca29ed1bc05e30ae22b4a6fd09e4f293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Thu, 9 May 2002 17:05:16 +0000 Subject: [PATCH] converted tabs to spaces [SVN r13781] --- test/bind_tests_advanced.cpp | 10 +++++----- test/bind_tests_simple.cpp | 16 ++++++++-------- test/bind_tests_simple_f_refs.cpp | 16 ++++++++-------- test/constructor_tests.cpp | 2 +- test/phoenix_control_structures.cpp | 6 +++--- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/test/bind_tests_advanced.cpp b/test/bind_tests_advanced.cpp index 2c351bc..b3c2e1f 100644 --- a/test/bind_tests_advanced.cpp +++ b/test/bind_tests_advanced.cpp @@ -172,21 +172,21 @@ void test_protect() for(int j=0; j<3; ++j) a[j] = b[j]; std::for_each(a, a+3, - bind(ll::for_each(), _1, _1 + 5, protect(_1 = ++var(i)))); + bind(ll::for_each(), _1, _1 + 5, protect(_1 = ++var(i)))); // This is how you could output the values (it is uncommented, no output // from a regression test file): // std::for_each(a, a+3, // bind(ll::for_each(), _1, _1 + 5, // std::cout << constant("\nLine ") << (&_1 - a) << " : " - // << protect(_1) - // ) + // << protect(_1) + // ) // ); int sum = 0; std::for_each(a, a+3, - bind(ll::for_each(), _1, _1 + 5, + bind(ll::for_each(), _1, _1 + 5, protect(sum += _1)) ); BOOST_TEST(sum == (1+15)*15/2); @@ -194,7 +194,7 @@ void test_protect() sum = 0; std::for_each(a, a+3, - bind(ll::for_each(), _1, _1 + 5, + bind(ll::for_each(), _1, _1 + 5, sum += 1 + protect(_1)) // add element count ); BOOST_TEST(sum == (1+15)*15/2 + 15); diff --git a/test/bind_tests_simple.cpp b/test/bind_tests_simple.cpp index 6d841d4..0b8ac64 100644 --- a/test/bind_tests_simple.cpp +++ b/test/bind_tests_simple.cpp @@ -123,14 +123,14 @@ int test_main(int, char *[]) { result = bind(&sum_of_args_1, // 12 bind(&sum_of_args_4, // 12 - bind(&sum_of_args_2, // 3 - bind(&sum_of_args_1, // 1 - bind(&sum_of_args_1, _1) // 1 - ), - _2), - _2, - _3, - 4) + bind(&sum_of_args_2, // 3 + bind(&sum_of_args_1, // 1 + bind(&sum_of_args_1, _1) // 1 + ), + _2), + _2, + _3, + 4) )(i, j, k); BOOST_TEST(result == 12); diff --git a/test/bind_tests_simple_f_refs.cpp b/test/bind_tests_simple_f_refs.cpp index 455391e..8b50e11 100644 --- a/test/bind_tests_simple_f_refs.cpp +++ b/test/bind_tests_simple_f_refs.cpp @@ -121,14 +121,14 @@ int test_main(int, char *[]) { result = bind(sum_of_args_1, // 12 bind(sum_of_args_4, // 12 - bind(sum_of_args_2, // 3 - bind(sum_of_args_1, // 1 - bind(sum_of_args_1, _1) // 1 - ), - _2), - _2, - _3, - 4) + bind(sum_of_args_2, // 3 + bind(sum_of_args_1, // 1 + bind(sum_of_args_1, _1) // 1 + ), + _2), + _2, + _3, + 4) )(i, j, k); BOOST_TEST(result == 12); diff --git a/test/constructor_tests.cpp b/test/constructor_tests.cpp index 5568214..66e143e 100644 --- a/test/constructor_tests.cpp +++ b/test/constructor_tests.cpp @@ -234,7 +234,7 @@ void delayed_construction() vector > v; transform(x.begin(), x.end(), y.begin(), back_inserter(v), - bind(constructor >(), _1, _2) ); + bind(constructor >(), _1, _2) ); } int test_main(int, char *[]) { diff --git a/test/phoenix_control_structures.cpp b/test/phoenix_control_structures.cpp index 9c733e4..8054124 100644 --- a/test/phoenix_control_structures.cpp +++ b/test/phoenix_control_structures.cpp @@ -68,7 +68,7 @@ int test_main(int, char *[]) { ] .else_ [ - ++var(lt) + ++var(lt) ] ] ); @@ -104,7 +104,7 @@ int test_main(int, char *[]) { ( do_ [ - ++var(counta) + ++var(counta) ] .while_(_1--), ++var(countb) @@ -123,7 +123,7 @@ int test_main(int, char *[]) { ( for_(var(iii) = 0, var(iii) < _1, ++var(iii)) [ - ++var(counta) + ++var(counta) ], ++var(countb) )