aboutsummaryrefslogtreecommitdiff
path: root/paludis
diff options
context:
space:
mode:
Diffstat (limited to 'paludis')
-rw-r--r--paludis/repositories/e/e_choice_value.cc27
-rw-r--r--paludis/resolver/decider.cc3
-rw-r--r--paludis/util/sequence-impl.hh2
-rw-r--r--paludis/util/visitor.hh2
4 files changed, 18 insertions, 16 deletions
diff --git a/paludis/repositories/e/e_choice_value.cc b/paludis/repositories/e/e_choice_value.cc
index 342e10daf..f1abf5b4d 100644
--- a/paludis/repositories/e/e_choice_value.cc
+++ b/paludis/repositories/e/e_choice_value.cc
@@ -144,19 +144,22 @@ namespace paludis
}
};
- bool operator== (const EChoiceValueParams & a, const EChoiceValueParams & b)
+ namespace erepository
{
- return true
- && (a.choice_name_with_prefix() == b.choice_name_with_prefix())
- && (a.choice_prefix_name() == b.choice_prefix_name())
- && (a.description() == b.description())
- && (a.enabled() == b.enabled())
- && (a.enabled_by_default() == b.enabled_by_default())
- && (a.origin() == b.origin())
- && (a.locked() == b.locked())
- && (a.presumed() == b.presumed())
- && (a.unprefixed_choice_name() == b.unprefixed_choice_name())
- ;
+ bool operator== (const EChoiceValueParams & a, const EChoiceValueParams & b)
+ {
+ return true
+ && (a.choice_name_with_prefix() == b.choice_name_with_prefix())
+ && (a.choice_prefix_name() == b.choice_prefix_name())
+ && (a.description() == b.description())
+ && (a.enabled() == b.enabled())
+ && (a.enabled_by_default() == b.enabled_by_default())
+ && (a.origin() == b.origin())
+ && (a.locked() == b.locked())
+ && (a.presumed() == b.presumed())
+ && (a.unprefixed_choice_name() == b.unprefixed_choice_name())
+ ;
+ }
}
}
diff --git a/paludis/resolver/decider.cc b/paludis/resolver/decider.cc
index f2a7f115f..010139801 100644
--- a/paludis/resolver/decider.cc
+++ b/paludis/resolver/decider.cc
@@ -933,8 +933,7 @@ Decider::_made_wrong_decision(
adapted_resolution, _imp->fns.allow_choice_changes_fn()(resolution), false, true, false, true));
if (decision)
{
- resolution->decision()->accept(WrongDecisionVisitor(std::bind(
- &Decider::_suggest_restart_with, this, resolution, constraint, decision)));
+ resolution->decision()->accept(WrongDecisionVisitor([&] () { _suggest_restart_with(resolution, constraint, decision); }));
resolution->decision() = decision;
}
else
diff --git a/paludis/util/sequence-impl.hh b/paludis/util/sequence-impl.hh
index f1ae381ac..b8b130155 100644
--- a/paludis/util/sequence-impl.hh
+++ b/paludis/util/sequence-impl.hh
@@ -159,7 +159,7 @@ template <typename C_>
void
paludis::Sequence<T_>::sort(const C_ & c)
{
- _imp->list.sort<const C_ &>(c);
+ _imp->list.template sort<const C_ &>(c);
}
#endif
diff --git a/paludis/util/visitor.hh b/paludis/util/visitor.hh
index 19b3d0b6b..a49776e8e 100644
--- a/paludis/util/visitor.hh
+++ b/paludis/util/visitor.hh
@@ -135,7 +135,7 @@ namespace paludis
};
template <typename T_>
- using CallResultType = typename ExtractResultType<decltype(&T_::operator())>::Type;
+ using CallResultType = typename std::remove_const<typename ExtractResultType<decltype(&T_::operator())>::Type>::type;
template <typename Revisitor_, typename Result_, typename... Cases_>
struct MadeVisitor;