Compiler Support

Let's look at the compiler support for the topics in this chapter.

Feature GCC Clang MSVC
std::optional 7.1 4.0 VS 2017 15.0

In the next section, we’ll be introduced to another utility in C++17: std::variant.

Get hands-on with 1400+ tech skills courses.