39-optional.patch 414 B

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