Using C++ 20

srfpala 111 Reputation points
2021-05-24T23:31:29.477+00:00

In VS2019, how do I assure that I am using the C++20 compiler and it’s features?

Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
{count} vote

2 answers

Sort by: Most helpful
  1. RLWA32 51,536 Reputation points
    2021-05-24T23:57:58.647+00:00
    0 comments No comments

  2. Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
    2021-05-25T02:15:33.393+00:00

    Hi,

    I suggest that you could determine whether you are using the C++ 20 compiler and its features by looking at what you have selected for the c++ language standard (right click the project -> properties -> General -> C++ Language Standard ).

    99302-5251.png

    If you choose /std:c++ latest, then you are using the C++20 compiler and its features.

    Best Regards,

    Jeanine


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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