forked from Bananymous/banan-os
BAN: Fix function call in Optional
This commit is contained in:
@@ -94,7 +94,7 @@ namespace BAN
|
|||||||
Optional<T>& Optional<T>::operator=(Optional&& other)
|
Optional<T>& Optional<T>::operator=(Optional&& other)
|
||||||
{
|
{
|
||||||
clear();
|
clear();
|
||||||
if (other.has_value)
|
if (other.has_value())
|
||||||
{
|
{
|
||||||
m_has_value = true;
|
m_has_value = true;
|
||||||
new (m_storage) T(BAN::move(other.release_value()));
|
new (m_storage) T(BAN::move(other.release_value()));
|
||||||
|
|||||||
Reference in New Issue
Block a user