From aa2c2520ad143ca7a064a409360a7c65a56b83ba Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sat, 9 Nov 2002 17:12:45 +0000 Subject: [PATCH] Make sure to pass the address of a function to Boost.Function, not the function itself (stupid MSVC) [SVN r16176] --- test/function_n_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/function_n_test.cpp b/test/function_n_test.cpp index 19942f0..a773bfc 100644 --- a/test/function_n_test.cpp +++ b/test/function_n_test.cpp @@ -105,7 +105,7 @@ test_zero_args() BOOST_TEST(v1.empty()); // Assignment to an empty function from a free function - v1 = write_five; + v1 = &write_five; BOOST_TEST(!v1.empty()); // Invocation