We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f4060 commit 258b454Copy full SHA for 258b454
Framework/Kernel/inc/MantidKernel/EnumeratedString.h
@@ -60,7 +60,8 @@ class EnumeratedString {
60
// treat the object as either the enum, or a string
61
operator E() const { return value; }
62
operator std::string() const { return name; }
63
-
+ // explicitly define copy assignment operator to avoid deprecation warnings
64
+ EnumeratedString &operator=(const EnumeratedString &other) = default;
65
// assign the object either by the enum, or by string
66
EnumeratedString &operator=(E e) {
67
if (int(e) >= 0 && size_t(e) < names->size()) {
0 commit comments