yyy-enable-std-expected.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. diff --git a/include/__expected/bad_expected_access.h b/include/__expected/bad_expected_access.h
  2. index 27f01d9..174f97f 100644
  3. --- a/include/__expected/bad_expected_access.h
  4. +++ b/include/__expected/bad_expected_access.h
  5. @@ -20,7 +20,7 @@
  6. _LIBCPP_PUSH_MACROS
  7. #include <__undef_macros>
  8. -#if _LIBCPP_STD_VER >= 23
  9. +#if _LIBCPP_STD_VER >= 20
  10. _LIBCPP_BEGIN_NAMESPACE_STD
  11. diff --git a/include/__expected/expected.h b/include/__expected/expected.h
  12. index 045370a..3f468fc 100644
  13. --- a/include/__expected/expected.h
  14. +++ b/include/__expected/expected.h
  15. @@ -62,7 +62,7 @@
  16. _LIBCPP_PUSH_MACROS
  17. #include <__undef_macros>
  18. -#if _LIBCPP_STD_VER >= 23
  19. +#if _LIBCPP_STD_VER >= 20
  20. _LIBCPP_BEGIN_NAMESPACE_STD
  21. diff --git a/include/__expected/unexpect.h b/include/__expected/unexpect.h
  22. index df52787..fc3be4c 100644
  23. --- a/include/__expected/unexpect.h
  24. +++ b/include/__expected/unexpect.h
  25. @@ -15,7 +15,7 @@
  26. # pragma GCC system_header
  27. #endif
  28. -#if _LIBCPP_STD_VER >= 23
  29. +#if _LIBCPP_STD_VER >= 20
  30. _LIBCPP_BEGIN_NAMESPACE_STD
  31. diff --git a/include/__expected/unexpected.h b/include/__expected/unexpected.h
  32. index c7fe3c5..928b677 100644
  33. --- a/include/__expected/unexpected.h
  34. +++ b/include/__expected/unexpected.h
  35. @@ -34,7 +34,7 @@
  36. _LIBCPP_PUSH_MACROS
  37. #include <__undef_macros>
  38. -#if _LIBCPP_STD_VER >= 23
  39. +#if _LIBCPP_STD_VER >= 20
  40. _LIBCPP_BEGIN_NAMESPACE_STD