How do you determine what version of the C++ standard is implemented by your compiler? As far as I know, below are the standards I’ve known:
- C++03
- C++98
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By my knowledge there is no overall way to do this. If you look at the headers of cross platform/multiple compiler supporting libraries you’ll always find a lot of defines that use compiler specific constructs to determine such things:
You probably will have to do such defines yourself for all compilers you use.