BAN: Fix function call in Optional
This commit is contained in:
parent
b02c486ad0
commit
21c6135ae2
|
@ -94,7 +94,7 @@ namespace BAN
|
|||
Optional<T>& Optional<T>::operator=(Optional&& other)
|
||||
{
|
||||
clear();
|
||||
if (other.has_value)
|
||||
if (other.has_value())
|
||||
{
|
||||
m_has_value = true;
|
||||
new (m_storage) T(BAN::move(other.release_value()));
|
||||
|
|
Loading…
Reference in New Issue