aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/paludis/world.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/environments/paludis/world.cc
parentb22056183d6a0e94e28e025c6bae6970979c26c0 (diff)
downloadpaludis-cc129190d549f69eccc67407946261544d538a91.tar.gz
paludis-cc129190d549f69eccc67407946261544d538a91.tar.xz
New improved NamedValue syntax
Diffstat (limited to 'paludis/environments/paludis/world.cc')
-rw-r--r--paludis/environments/paludis/world.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/paludis/environments/paludis/world.cc b/paludis/environments/paludis/world.cc
index e642547ed..02e1841e2 100644
--- a/paludis/environments/paludis/world.cc
+++ b/paludis/environments/paludis/world.cc
@@ -116,12 +116,12 @@ World::_add_string_to_world(const std::string & n) const
}
SetFile world(make_named_values<SetFileParams>(
- value_for<n::environment>(_imp->env),
- value_for<n::file_name>(*_imp->maybe_world_file),
- value_for<n::parser>(std::tr1::bind(&parse_user_package_dep_spec, _1, _imp->env, UserPackageDepSpecOptions() + updso_no_disambiguation + updso_throw_if_set, filter::All())),
- value_for<n::set_operator_mode>(sfsmo_natural),
- value_for<n::tag>(std::tr1::shared_ptr<DepTag>()),
- value_for<n::type>(sft_simple)
+ n::environment() = _imp->env,
+ n::file_name() = *_imp->maybe_world_file,
+ n::parser() = std::tr1::bind(&parse_user_package_dep_spec, _1, _imp->env, UserPackageDepSpecOptions() + updso_no_disambiguation + updso_throw_if_set, filter::All()),
+ n::set_operator_mode() = sfsmo_natural,
+ n::tag() = std::tr1::shared_ptr<DepTag>(),
+ n::type() = sft_simple
));
world.add(n);
world.rewrite();
@@ -147,12 +147,12 @@ World::_remove_string_from_world(const std::string & n) const
if (_imp->maybe_world_file->exists())
{
SetFile world(make_named_values<SetFileParams>(
- value_for<n::environment>(_imp->env),
- value_for<n::file_name>(*_imp->maybe_world_file),
- value_for<n::parser>(std::tr1::bind(&parse_user_package_dep_spec, _1, _imp->env, UserPackageDepSpecOptions() + updso_no_disambiguation + updso_throw_if_set, filter::All())),
- value_for<n::set_operator_mode>(sfsmo_natural),
- value_for<n::tag>(std::tr1::shared_ptr<DepTag>()),
- value_for<n::type>(sft_simple)
+ n::environment() = _imp->env,
+ n::file_name() = *_imp->maybe_world_file,
+ n::parser() = std::tr1::bind(&parse_user_package_dep_spec, _1, _imp->env, UserPackageDepSpecOptions() + updso_no_disambiguation + updso_throw_if_set, filter::All()),
+ n::set_operator_mode() = sfsmo_natural,
+ n::tag() = std::tr1::shared_ptr<DepTag>(),
+ n::type() = sft_simple
));
result = world.remove(n);
@@ -181,12 +181,12 @@ World::world_set() const
if (_imp->maybe_world_file->exists())
{
SetFile world(make_named_values<SetFileParams>(
- value_for<n::environment>(_imp->env),
- value_for<n::file_name>(*_imp->maybe_world_file),
- value_for<n::parser>(std::tr1::bind(&parse_user_package_dep_spec, _1, _imp->env, UserPackageDepSpecOptions() + updso_no_disambiguation + updso_throw_if_set, filter::All())),
- value_for<n::set_operator_mode>(sfsmo_natural),
- value_for<n::tag>(tag),
- value_for<n::type>(sft_simple)
+ n::environment() = _imp->env,
+ n::file_name() = *_imp->maybe_world_file,
+ n::parser() = std::tr1::bind(&parse_user_package_dep_spec, _1, _imp->env, UserPackageDepSpecOptions() + updso_no_disambiguation + updso_throw_if_set, filter::All()),
+ n::set_operator_mode() = sfsmo_natural,
+ n::tag() = tag,
+ n::type() = sft_simple
));
return world.contents();
}