Do they both follow the C++03 released in 2003?
Share
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.
They both target C++03, yes. But they also both have areas where they fail to comply with the standard. (So does GCC, btw, before any fanboys on either side starts frothing at the mouth).
But keep in mind that C++03 is basically a very small bugfix release, nailing down a few “common sense” things that sensible compilers would have done anyway (for example, in C++98, it was, strictly speaking, possible to have vectors that aren’t contiguously allocated. C++03 prohibits that, but every sane compiler vendor would have used contiguous vectors anyway, because that’s what vectors are intended for)
GCC doesn’t even have a C++03 standard setting. You tell it to target C++98 (with
std=c++98), and it actually targets C++03 instead. I’m not aware of a compiler which actually makes a distinction between the two, because the changes are so few, and so obvious.