[svlug] g++ 2.95 -> 3.1

Ivan Sergio Borgonovo mail at webthatworks.it
Wed Feb 5 02:08:08 PST 2003


On 4 Feb 2003 at 19:27, Joe Buck wrote:

> On Sat, Feb 01, 2003 at 02:49:01PM +0100, Ivan Sergio Borgonovo wrote: >
> Or was just gcc 2.95 too relaxed and I should read what the standards >
> are?

> Yes.  Anyone who has C++ code that only compiles with gcc 2.95 probably
> doesn't know how to write C++, but has unconciously learned a strange

This hypothesis may be true.

Learning on the standard was (is?) most of the times useless since few 
libraries were/(are?) standard and the standard was still moving.

> dialect.  gcc 3.2.1 is quite close to the ISO standard, and the standard
> library implementation is quite decent; there is no reason to use
> STLport any more.

Anyway I found this:
http://www.dinkumware.com/conform_cpp.html

Maybe some error were reported by 3.2 and not by 2.95 due to:
-   missing support of some operators in both
-   stricter type control

2.95 casted streampos to long int quietly.
3.2 didn't cast streampos and it complained about missing operator.

I don't know if it is standard that there isn't a ++ operator for 
streampos, but I would expect it to exist.

#include problem was my fault.

I've to check problems with some constructors.

Thanks to all for the pointers...

-- 
Salve
Ivan Sergio Borgonovo
http://www.webthatworks.it/
uniq life || sleep 24h




More information about the svlug mailing list