From 0707a60115cb547d5a0c161d4ea8c7fa22f68ae2 Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Mon, 5 Sep 2016 19:11:51 +0200 Subject: [PATCH] Conditionally disable tests using deprecated/removed C++98 binders. Signed-off-by: Daniela Engert --- test/std_bind_cxx98.cpp | 3 ++- test/std_bind_portable.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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; }