I have a school assignment that should be written in C++98-compliant code. How can I force g++ to accept only code that follows this standard? Will -std=c++98 do the trick or do I need to add additional flags?
I have a school assignment that should be written in C++98-compliant code. How can
Share
Per GCC’s documentation on standards:
Therefore, you should specify
-std=c++98 -pedanticif you really want to ensure standards compliance.