Skip to content

Silence experimental coroutine deprecation - #1619

Draft
Chris Guzak (ChrisGuzak) wants to merge 1 commit into
masterfrom
fix-experimental-coroutine-toolchain
Draft

Silence experimental coroutine deprecation#1619
Chris Guzak (ChrisGuzak) wants to merge 1 commit into
masterfrom
fix-experimental-coroutine-toolchain

Conversation

@ChrisGuzak

Copy link
Copy Markdown
Member

Summary

Define MSVC's opt-out macro for the deprecated <experimental/coroutine> header used by the repository's C++17 /await:strict configuration.

This keeps existing C++17 coroutine builds working with current MSVC toolsets without changing runtime behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@sylveon

Copy link
Copy Markdown
Contributor

/await:strict doesn't use experimental coroutines. This seems like the wrong fix?

@YexuanXiao

Yexuan Xiao (YexuanXiao) commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

/await works with <experimental/coroutine>, and /await:strict works with <coroutine>. C++20 mode does not require either.

@DefaultRyan

Copy link
Copy Markdown
Member

Need a more thorough repro case for what this purports to fix. C++/WinRT no longer includes the deprecated experimental coroutine headers.

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.

4 participants