39-optional.patch 414 B

12345678910111213
  1. diff --git a/include/optional b/include/optional
  2. index 99bfd0d..71ccbea 100644
  3. --- a/include/optional
  4. +++ b/include/optional
  5. @@ -294,7 +294,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. }