aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-12 14:05:32 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-12 14:05:32 +0100
commitbe77e144fbf5fb357e2ade4518edbb32b46a1d2a (patch)
treea493798747cc7d62ac6378251c3842016b37e291
parentc3be2c0c889153faa7e5fd69defa5678a873a3e9 (diff)
downloadpaludis-be77e144fbf5fb357e2ade4518edbb32b46a1d2a.tar.gz
paludis-be77e144fbf5fb357e2ade4518edbb32b46a1d2a.tar.xz
Can't take a PMF to list<>::push_back in 0x.
-rw-r--r--paludis/util/action_queue_TEST.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/paludis/util/action_queue_TEST.cc b/paludis/util/action_queue_TEST.cc
index 691824d..54742a2 100644
--- a/paludis/util/action_queue_TEST.cc
+++ b/paludis/util/action_queue_TEST.cc
@@ -26,6 +26,14 @@
using namespace test;
using namespace paludis;
+namespace
+{
+ void push_back_to_list(std::list<int> * const l, int x)
+ {
+ l->push_back(x);
+ }
+}
+
namespace test_cases
{
struct ActionQueueTest : TestCase
@@ -38,7 +46,7 @@ namespace test_cases
{
ActionQueue q;
for (int x(0) ; x < 100 ; ++x)
- q.enqueue(std::tr1::bind(std::tr1::mem_fn(&std::list<int>::push_back), &l, x));
+ q.enqueue(std::tr1::bind(&push_back_to_list, &l, x));
}
std::list<int>::const_iterator i(l.begin());