39-optional.patch 407 B

12345678910111213
  1. diff --git a/include/optional b/include/optional
  2. index fc172c7..4048fa2 100644
  3. --- a/include/optional
  4. +++ b/include/optional
  5. @@ -301,7 +301,7 @@ struct __optional_destruct_base<_Tp, false>
  6. bool __engaged_;
  7. _LIBCPP_INLINE_VISIBILITY
  8. - _LIBCPP_CONSTEXPR_SINCE_CXX20 ~__optional_destruct_base()
  9. + ~__optional_destruct_base()
  10. {
  11. if (__engaged_)
  12. __val_.~value_type();