diff --git a/tl/optional.hpp b/tl/optional.hpp index 88ce30e..7350f8a 100644 --- a/tl/optional.hpp +++ b/tl/optional.hpp @@ -2252,6 +2252,7 @@ public: *this = nullopt; this->construct(std::forward(args)...); + return value(); } /// Swaps this optional with the other.