Conditionally disable tests using deprecated/removed C++98 binders.

Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
Daniela Engert
2016-09-05 19:11:51 +02:00
parent dd04707209
commit 0707a60115
2 changed files with 4 additions and 2 deletions

View File

@ -20,11 +20,12 @@ int X::foo(int x) { return -x; }
int main()
{
#ifndef BOOST_NO_CXX98_BINDERS
boost::function<int (int)> f;
X x;
f = std::bind1st(
std::mem_fun(&X::foo), &x);
f(5); // Call x.foo(5)
#endif
return 0;
}