I want to enable C ++ 17 compilation in my project. I tried to do this as follows: Project -> Properties -> C / C ++ -> Language -> C ++ Language Standard -> ISO C ++ Standard 17. Clicked apply, but the following code prints 201402 , which means that the compiler is still working with C ++ 14

std::cout << _MSVC_LANG << std::endl; 

What is the problem? The version of Visual Studio is 15.9.4. Visual C ++ Version 19.16

  • one
    It says that you need at least 19.11. - HolyBlackCat
  • @HolyBlackCat, code std :: cout << _MSC_VER << std :: endl; displays 1916 - Rah_837
  • tried, works. Maybe not saved? - KoVadim
  • @KoVadim, I'm going the same way, I see the ISO C ++ Standard 17 - Rah_837
  • one
    Perhaps you included C ++ 17 only, for example, for the Debug / x32 version, and at compilation it costs x64 and / or Release - Drawn Raccoon

0