diff --git a/test/std_bind_cxx98.cpp b/test/std_bind_cxx98.cpp index 2d69eb9..d23fab1 100644 --- a/test/std_bind_cxx98.cpp +++ b/test/std_bind_cxx98.cpp @@ -20,11 +20,12 @@ int X::foo(int x) { return -x; } int main() { +#ifndef BOOST_NO_CXX98_BINDERS boost::function f; X x; f = std::bind1st( std::mem_fun(&X::foo), &x); f(5); // Call x.foo(5) - +#endif return 0; } diff --git a/test/std_bind_portable.cpp b/test/std_bind_portable.cpp index 339ffa8..1bfdbc2 100644 --- a/test/std_bind_portable.cpp +++ b/test/std_bind_portable.cpp @@ -20,11 +20,12 @@ int X::foo(int x) { return -x; } int main() { +#ifndef BOOST_NO_CXX98_BINDERS boost::function1 f; X x; f = std::bind1st( std::mem_fun(&X::foo), &x); f(5); // Call x.foo(5) - +#endif return 0; }