Share via


Visual Studio 2019: C++ default language standard when nothing is checked

Question

Wednesday, May 22, 2019 8:43 AM

The question is about project properties in VS 2019: C/C++->Language->C++ Language Standard: If nothing it checked there what option is the default?

To be more specific: which of the options available after mouse click is actually set? Is it C++17?

All replies (1)

Wednesday, May 22, 2019 10:33 AM ✅Answered

Hi friend,

Welcome to MSDN forum.

>>If nothing it checked there what option is the default?

Please check this document, if nothing it checked, C++14 is default for VS2019.

  • By default, /std:c++14 is specified

To check it:

We can create a new C++ project, and std::cout << _MSVC_LANG; We can get the 201402 which indicates the C++14.

(For a new C++ project, the Language standard is empty by default. According to the value 201402 we could know C++14 is specified by default as the doc says)

>>To be more specific: which of the options available after mouse click is actually set? Is it C++17?

When you set a mouse click, both C++14 and C++17 is available.



Hope all above helps. Please give me a feedback if my reply is helpful:)

Best Regards

Lance

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].