aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/named_value.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/named_value.hh')
-rw-r--r--paludis/util/named_value.hh11
1 files changed, 2 insertions, 9 deletions
diff --git a/paludis/util/named_value.hh b/paludis/util/named_value.hh
index b638b2e87..26490b7f3 100644
--- a/paludis/util/named_value.hh
+++ b/paludis/util/named_value.hh
@@ -80,21 +80,14 @@ namespace paludis
{
}
- NamedValue(const NamedValue & v) :
- _value(v._value)
- {
- }
+ NamedValue(const NamedValue & v) = default;
NamedValue(NamedValue && v) :
_value(std::move(v._value))
{
}
- NamedValue & operator=(const NamedValue & v)
- {
- _value = v._value;
- return *this;
- }
+ NamedValue & operator=(const NamedValue & v) = default;
V_ & operator() ()
{