Search This Blog

Sunday, November 15, 2009

C++, Compile C++ with ISO Standard

g++ compile has many useful extensions not comply with C++ ISO standard.
such as:
array[0] is allowd,
array[non-constant-index] is allowed for static allocated array.

If you want to make sure your code can be compiled under the latest C++ standard, pass the option
to the gcc (g++) compiler.

No comments: