diff --git a/src/maybe.h b/src/maybe.h index 3c32d531c..a451787a4 100644 --- a/src/maybe.h +++ b/src/maybe.h @@ -214,8 +214,6 @@ class maybe_t : private maybe_detail::conditionally_copyable_t { bool operator==(const T &rhs) const { return this->has_value() && this->value() == rhs; } bool operator!=(const T &rhs) const { return !(*this == rhs); } - - ~maybe_t() { reset(); } }; #endif