mirror of
https://github.com/boostorg/phoenix.git
synced 2026-02-19 14:42:14 +00:00
Merge branch 'release-3.1.0'
This commit is contained in:
@@ -60,7 +60,15 @@ int main()
|
||||
|
||||
Y y;
|
||||
|
||||
// MSVC 10,9 and 8 all give a COMDAT error with the full test.
|
||||
// This also fails:
|
||||
//boost::shared_ptr<X> xp = bind( &Y::f, &y )();
|
||||
#if defined(BOOST_MSVC) && (BOOST_MSVC < 1700)
|
||||
boost::shared_ptr<X> xp = y.f();
|
||||
BOOST_TEST( bind( &X::f, xp)() == 42 );
|
||||
#else
|
||||
BOOST_TEST( bind( &X::f, bind( &Y::f, &y ) )() == 42 );
|
||||
#endif
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user