aboutsummaryrefslogtreecommitdiff
path: root/paludis/output_manager_factory.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-05-19 16:01:04 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-05-19 16:01:04 +0100
commitcc129190d549f69eccc67407946261544d538a91 (patch)
tree08f0ffe78b5c3f63dfc89d32dba1d828a5107dd0 /paludis/output_manager_factory.cc
parentb22056183d6a0e94e28e025c6bae6970979c26c0 (diff)
downloadpaludis-cc129190d549f69eccc67407946261544d538a91.tar.gz
paludis-cc129190d549f69eccc67407946261544d538a91.tar.xz
New improved NamedValue syntax
Diffstat (limited to 'paludis/output_manager_factory.cc')
-rw-r--r--paludis/output_manager_factory.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/output_manager_factory.cc b/paludis/output_manager_factory.cc
index 03cc4d4a8..89afd179e 100644
--- a/paludis/output_manager_factory.cc
+++ b/paludis/output_manager_factory.cc
@@ -47,7 +47,7 @@ namespace paludis
{
namespace n
{
- struct create_function;
+ typedef Name<struct create_function_name> create_function;
}
}
@@ -139,7 +139,7 @@ OutputManagerFactory::add_manager(
f != f_end ; ++f)
{
if (! _imp->keys.insert(std::make_pair(*f, make_named_values<Funcs>(
- value_for<n::create_function>(create_function)
+ n::create_function() = create_function
))).second)
throw ConfigurationError("Handler for output manager format '" + stringify(*f) + "' already exists");
}