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
-pedantic
to the gcc (g++) compiler.
No comments:
Post a Comment