Skip to content

Use std:: coroutines for compatibility with C++20 and Clang 17 - #12887

Merged
acoates-ms merged 3 commits into
microsoft:mainfrom
rozele:coroutineFix
Mar 28, 2024
Merged

acoates-ms merged 3 commits into
microsoft:mainfrom
rozele:coroutineFix

Conversation

@rozele

@rozele Eric Rozell (rozele) commented Mar 28, 2024 •

Copy link
Copy Markdown
Contributor

Description

Type of Change

Erase all that don't apply.

  • New feature (non-breaking change which adds functionality)

Why

Newer versions of Clang do not support mixing C++20 and std::experimental coroutines. In such cases, we should prefer the coroutine types declared in the std:: namespace.

Testing

Wait for CI tests.

Changelog

Should this change be included in the release notes: no

Microsoft Reviewers: Open in CodeFlow

@rozele
Eric Rozell (rozele) requested review from a team as code owners March 28, 2024 14:04
@rozele
Eric Rozell (rozele) marked this pull request as draft March 28, 2024 14:04
Newer versions of Clang do not support mixing C++20 and std::experimental coroutines. In such cases, we should prefer the coroutine types declared in the std:: namespace. Fortunately, there is already a helper namespace for this in winrt/base.h.
@rozele
Eric Rozell (rozele) marked this pull request as ready for review March 28, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants