What default C++ version set in VS 2017?

James J 606 Reputation points
2020-12-02T01:29:25.3+00:00

What is the default C++ version in VS 2017 if we are not setting C++ version explicitly. I see we do not need to set default C++ version in VS 2017 but, VS 2019 it set default with C++14.

Can you please clarify on this?

Developer technologies | C++
0 comments No comments
{count} votes

Accepted answer
  1. RLWA32 49,641 Reputation points
    2020-12-02T02:26:54.98+00:00

    According to std-specify-language-standard-version for VS2017 -

    By default, /std:c++14 is specified, which disables language and standard library features found in later versions of the C++ language standard. Use /std:c++17 to enable C++17 standard-specific features and behavior. To explicitly enable the currently implemented compiler and standard library features proposed for the next draft standard, use /std:c++latest. All C++20 features require /std:c++latest; when the implementation is complete, a new /std:c++20 option will be enabled.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.