diff --git a/BAN/include/BAN/Optional.h b/BAN/include/BAN/Optional.h index 10dc2d7c8..5a1845f87 100644 --- a/BAN/include/BAN/Optional.h +++ b/BAN/include/BAN/Optional.h @@ -94,7 +94,7 @@ namespace BAN Optional& Optional::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()));