diff --git a/optional.hpp b/optional.hpp index 246a0f1..dd919fc 100644 --- a/optional.hpp +++ b/optional.hpp @@ -910,6 +910,8 @@ public: this->m_value.~T(); this->m_has_value = false; } + + return *this; } // TODO conditionally delete, check exception guarantee