Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Cannot find std::experimental::when_any

I am trying to use std::experimental::when_any and std::experimental::when_all which according to Anthony Williams are in <experimental/future> header.

I am using Visual Studio 2022 (same is for 2019) and cannot find this header/functions neither under C++17 standard nor under C++20 standard configurations.

Can someone please help to reach this functions in VS?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The experimental headers are not part of the standard. An implementation may provide them, but is not required to.

They are defined for features that the C++ committee is working on incorporating into a future standard.

Neither Visual Studio 2019 nor 2022 provide <experimental/future>

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading