mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 04:03:39 +08:00
maybe_t: remove user-defined destructor
The destructor is equivalent to the compiler-generated one. The user-defined destructor prevents maybe_t<size_t> from bearing the predicate "trivially copyable". Let's remove it. No functional change.
This commit is contained in:
parent
45da77c5c5
commit
1ce2961561
|
@ -214,8 +214,6 @@ class maybe_t : private maybe_detail::conditionally_copyable_t<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
|
||||
|
|
Loading…
Reference in New Issue
Block a user