Skip to content

Commit 258b454

Browse files
Change to avoid deprecation warnings.
1 parent 39f4060 commit 258b454

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Framework/Kernel/inc/MantidKernel/EnumeratedString.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class EnumeratedString {
6060
// treat the object as either the enum, or a string
6161
operator E() const { return value; }
6262
operator std::string() const { return name; }
63-
63+
// explicitly define copy assignment operator to avoid deprecation warnings
64+
EnumeratedString &operator=(const EnumeratedString &other) = default;
6465
// assign the object either by the enum, or by string
6566
EnumeratedString &operator=(E e) {
6667
if (int(e) >= 0 && size_t(e) < names->size()) {

0 commit comments

Comments
 (0)