g++ doesn't like expressions of the form: ... = unsigned int(foo);
g++ did like a C-style typecast: ... = (unsigned int) (foo);
g++ doesn't like:
friend
operator<<(ostream& Out,
const foo<T>& Foo);
g++ did like:
friend
operator<< <>(ostream& Out,
const foo<T>& Foo);
g++ doesn't like:
for (int Pos = 0; Pos < Limit; Pos++) {
...
}
if ( Pos == Limit )... // ISO says: this is an illegal reference
g++ does like:
int Pos;
for (Pos = 0; Pos < Limit; Pos++) {
...
}
if ( Pos == Limit )...
g++ doesn't like source files that don't have a return at the end of the last line... just a warning and no big deal.