This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: --enable-long-long by default?


> "long long" is not legal ISO C++.  I suppose that as long as 
> "-ansi" or "-pedantic" turns if off, it's ok to default on, 
> but I prefer having extensions turned on when users ask for 
> them, not by default.

long long, as a built-in type, is available in g++ by default. It is
an extension that cannot be mistaken as a well-formed C++ program, so
-ansi has nothing to do with it. In g++, this type is not available
with -pedantic. I'd prefer if this strategy (provide extensions by
default) also applies to the libraries included in GCC.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]