aboutsummaryrefslogtreecommitdiff
path: root/paludis/format_messages_output_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/format_messages_output_manager.cc')
-rw-r--r--paludis/format_messages_output_manager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/format_messages_output_manager.cc b/paludis/format_messages_output_manager.cc
index 829101421..2d4df9e6e 100644
--- a/paludis/format_messages_output_manager.cc
+++ b/paludis/format_messages_output_manager.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2010 Ciaran McCreesh
+ * Copyright (c) 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -206,7 +206,7 @@ FormatMessagesOutputManager::factory_create(
std::shared_ptr<OutputManager> child(create_child_function(child_s));
FormatMessagesOutputManagerFormatFunction format_func(std::bind(
- &format_message, replace_vars_func, std::placeholders::_1, std::placeholders::_2));
+ &format_message, std::cref(replace_vars_func), std::placeholders::_1, std::placeholders::_2));
return std::make_shared<FormatMessagesOutputManager>(
child, format_debug_s, format_info_s, format_warn_s, format_error_s, format_log_s, format_status_s, format_func);