|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62737 - trunk/libs/assign/test
From: steven_at_[hidden]
Date: 2010-06-10 10:33:00
Author: steven_watanabe
Date: 2010-06-10 10:32:59 EDT (Thu, 10 Jun 2010)
New Revision: 62737
URL: http://svn.boost.org/trac/boost/changeset/62737
Log:
Resolve C++0x ambiguities. Fixes #3073
Text files modified:
trunk/libs/assign/test/list_inserter.cpp | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
Modified: trunk/libs/assign/test/list_inserter.cpp
==============================================================================
--- trunk/libs/assign/test/list_inserter.cpp (original)
+++ trunk/libs/assign/test/list_inserter.cpp 2010-06-10 10:32:59 EDT (Thu, 10 Jun 2010)
@@ -62,15 +62,10 @@
//
make_list_inserter( (void (*)(int))&function_ptr )( 5 ),3;
make_list_inserter( functor() )( 4 ),2;
-
-#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
-// BCB would crash
+
typedef void (vector<int>::* push_back_t)(const int&);
push_back_t push_back_func = &vector<int>::push_back;
- make_list_inserter( bind( push_back_func, &v, _1 ) )( 6 ),4;
-#else
- make_list_inserter( bind( &vector<int>::push_back, &v, _1 ) )( 6 ),4;
-#endif
+ make_list_inserter( boost::bind( push_back_func, &v, _1 ) )( 6 ),4;
BOOST_CHECK_EQUAL( v.size(), 2u );
BOOST_CHECK_EQUAL( v[0], 6 );
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk