Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapters 12 and 13 fail to build in Visual Studio 2019 #2

Open
puhach opened this issue Jul 30, 2021 · 0 comments
Open

Chapters 12 and 13 fail to build in Visual Studio 2019 #2

puhach opened this issue Jul 30, 2021 · 0 comments

Comments

@puhach
Copy link

puhach commented Jul 30, 2021

Building chapters 12 and 13 in MSVC 16.10.4 results in an error:

C:\temp\Cpp-High-Performance-Second-Edition-master\Chapter12\resumable.h(21,8): error C2039: 'coroutine_handle': is not a member of 'std'

And the message from the compiler tells what is wrong:

The contents of <coroutine> are not available with /await.
Remove /await or use /await:strict for standard coroutines.
Use <experimental/coroutine> for legacy /await support.

Replacing /await with /await:strict fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant