I want to use std::experimental::optional
, but MSVS 2013 tells me it can't find the header.
In the Visual Studio Installer, choose the Workloads tab, and then select or deselect the workloads that you want. To add more components than a workload installs, choose the Individual components tab, and then select or deselect the individual components that you want.
If you are running Windows 7, you can find the Visual Studio 2015 application at the top of the All Programs list grouped with other application icons. If you are running Windows 10, Windows 8.1, Windows 8 or Windows 11, you can find the icon listed under the V grouping.
std::experimental::optional
originates from the Boost.Optional library, and this implementation works well in Visual C++ 12.0 (though it differs a little). Reference single-header implementation, based on the N3793 proposal paper, can be found here.
The latest list of supported C++11/14/1z core and library features that are shipped with Visual Studio can be found from the Visual C++ Team blog, from this post in particular. A set of header files of the Standard Library implementation (and some extensions) from Microsoft can be viewed here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With