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;