2
0
mirror of https://github.com/boostorg/phoenix.git synced 2026-01-26 06:42:25 +00:00

bind_dm_test Add special code for gcc 5.0 optimized

This commit is contained in:
John Fletcher
2015-01-24 23:27:29 +00:00
parent f61291dc1f
commit ef252ccc49

View File

@@ -71,7 +71,11 @@ int main()
int const v = 42;
#if defined(BOOST_GCC_VERSION) && (BOOST_GCC_VERSION >= 50000) && __OPTIMIZE__
// Change bind_dm_test.cpp to bind to _1 twice.
BOOST_TEST( bind( &X::m, _1)( bind( f, _1 )( v ) ) == v );
#else
BOOST_TEST( bind( &X::m, bind( f, _1 ) )( v ) == v );
#endif
return boost::report_errors();
}