forked from Bananymous/banan-os
BAN: Fix function call in Optional
This commit is contained in:
parent
f8a1a10897
commit
5411c5aa4a
|
@ -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