mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
fix move ctor/assignment
This commit is contained in:
@@ -105,7 +105,7 @@ public:
|
||||
Optional& assign(C&& value)
|
||||
/// Moves a value into the Optional.
|
||||
{
|
||||
_value = value;
|
||||
_value = std::move(value);
|
||||
_isSpecified = true;
|
||||
return *this;
|
||||
}
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
|
||||
Optional& operator = (C&& value)
|
||||
{
|
||||
return assign(value);
|
||||
return assign(std::move(value));
|
||||
}
|
||||
|
||||
Optional& operator = (const Optional& other)
|
||||
|
||||
Reference in New Issue
Block a user