diff --git a/test/return_assign.cpp b/test/return_assign.cpp index 6637ffa..2f8cb23 100644 --- a/test/return_assign.cpp +++ b/test/return_assign.cpp @@ -35,7 +35,8 @@ boost::function linear(const int& slope) { } void call(void) { - boost::function f = linear(2); + int slope = 2; + boost::function f = linear(slope); BOOST_TEST(f(1, 2) == 5); } //]