aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Enum.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Enum.h')
-rw-r--r--lib/Enum.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Enum.h b/lib/Enum.h
index e29b8c0..79c2f80 100644
--- a/lib/Enum.h
+++ b/lib/Enum.h
@@ -199,6 +199,12 @@ public:
return *this;
}
+ inline Enum& operator = (const Enum& rhs) {
+ if (&rhs != this)
+ value = rhs.value;
+ return *this;
+ }
+
/**
* returns the enumeration value hold with this
* enum.