aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/action_queue_TEST.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/action_queue_TEST.cc')
-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 691824d4f..54742a292 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());