From 61f3e9cb9a10f2d87c02cb6c07135860b4f248a4 Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Fri, 29 Oct 2010 21:36:38 +0000 Subject: [PATCH] Merged revisions 65167 via svnmerge from https://svn.boost.org/svn/boost/trunk ........ r65167 | steven_watanabe | 2010-09-01 09:08:21 -0700 (Wed, 01 Sep 2010) | 1 line Fix for_each test for C++0x ........ [SVN r66257] --- test/for_each.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/for_each.cpp b/test/for_each.cpp index aa86fdd..ec7a3d5 100644 --- a/test/for_each.cpp +++ b/test/for_each.cpp @@ -55,6 +55,11 @@ struct value_printer # pragma warning(disable:985) #endif +void push_back(std::vector* c, int i) +{ + c->push_back(i); +} + int main() { typedef mpl::list types; @@ -63,16 +68,9 @@ int main() typedef mpl::range_c numbers; std::vector v; -#if defined(__SGI_STL_PORT) - void (std::vector::* push_back)(int const&) = &std::vector::push_back; mpl::for_each( - boost::bind(push_back, &v, _1) + boost::bind(&push_back, &v, _1) ); -#else - mpl::for_each( - boost::bind(&std::vector::push_back, &v, _1) - ); -#endif mpl::for_each< numbers >(value_printer(std::cout));