Fix a typo in base-no-coroutines.patch and re-apply the patch.

PiperOrigin-RevId: 495888291
This commit is contained in:
hai007
2022-12-16 09:10:21 -08:00
committed by Copybara-Service
parent 4a8ff331a7
commit 7855176718
2 changed files with 3 additions and 1 deletions
@@ -2,7 +2,7 @@
--- third_party/nearby/internal/platform/implementation/windows/generated/winrt/base-no-coroutines.h 2022-12-07 15:28:53.000000000 -0500
***************
*** 35,40 ****
--- 35,66 ----
--- 35,67 ----
#include <format>
#endif
@@ -10,6 +10,7 @@
+ // If the C++ standard is cxx17, coroutines are not available in libc++.
+ // To compile WinRT without coroutines, define some placeholder types.
+ // These placeholders should not be used. If they are used, they should fail.
+ namespace std::experimental {
+ template <typename T = void>
+ struct coroutine_handle {
+ coroutine_handle() { throw std::logic_error("Not implemented."); }
@@ -39,6 +39,7 @@
// If the C++ standard is cxx17, coroutines are not available in libc++.
// To compile WinRT without coroutines, define some placeholder types.
// These placeholders should not be used. If they are used, they should fail.
namespace std::experimental {
template <typename T = void>
struct coroutine_handle {
coroutine_handle() { throw std::logic_error("Not implemented."); }