aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Daniel Mierswa <impulze@impulze.org> 2012-02-27 12:11:02 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-03-03 14:46:27 +0000
commita5d3573915c63661f50fabc71af9a187b2bd0de6 (patch)
tree43b90f17918e389f3fce616aaec1fa00d1249668
parentc7788e7fead2c0a92003b65e79f6c627a53384b0 (diff)
downloadpaludis-a5d3573915c63661f50fabc71af9a187b2bd0de6.tar.gz
paludis-a5d3573915c63661f50fabc71af9a187b2bd0de6.tar.xz
add assignment operator to NamedValue
ISO 14882:2011 12.8 - 18 "If the class definition declares a move constructor or move assignment operator, the implicitly declared copy assignment operator is defined as deleted;"
-rw-r--r--paludis/util/named_value.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/util/named_value.hh b/paludis/util/named_value.hh
index bf61198..6375de0 100644
--- a/paludis/util/named_value.hh
+++ b/paludis/util/named_value.hh
@@ -90,6 +90,12 @@ namespace paludis
{
}
+ NamedValue & operator=(const NamedValue & v)
+ {
+ _value = v._value;
+ return *this;
+ }
+
V_ & operator() ()
{
return _value;