From 05b9bd64c47580945b9c380752b151c361284df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Wed, 25 Sep 2002 16:46:42 +0000 Subject: [PATCH] converting to the new boost::function style [SVN r15508] --- test/bll_and_function.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/bll_and_function.cpp b/test/bll_and_function.cpp index 4494f6e..4223731 100644 --- a/test/bll_and_function.cpp +++ b/test/bll_and_function.cpp @@ -21,13 +21,13 @@ using namespace std; void test_function() { - boost::function f; + boost::function f; f = _1 + _2; BOOST_TEST(f(1, 2)== 3); int i=1; int j=2; - boost::function g = _1 += _2; + boost::function g = _1 += _2; g(i, j); BOOST_TEST(i==3); @@ -35,7 +35,7 @@ void test_function() { int* sum = new int(); *sum = 0; - boost::function counter = *sum += _1; + boost::function counter = *sum += _1; counter(5); // ok, sum* = 5; BOOST_TEST(*sum == 5); delete sum;