fix(util/optional): typo
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
a2aa90ae66
commit
55f86f79a8
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ public:
|
|||
if (m_some)
|
||||
m_value.~T();
|
||||
m_some = true;
|
||||
new (&m_value) T(other.m_value);
|
||||
new (&m_value) T(other);
|
||||
return *this;
|
||||
}
|
||||
optional& operator=(T && other) {
|
||||
|
|
Loading…
Reference in a new issue