This is the mail archive of the libstdc++@gcc.gnu.org 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: std::cout and long long problem


On Sun, Feb 11, 2001 at 03:27:57PM -0500, Craig Rodrigues wrote:
> 
> Does std::cout need to support the long long type?

You must use --enable-long-long when configuring.  It will not work on
all platforms.

> What does the Standard say about long long?

Absolutely nothing.  Only C99, not C++98, specifies a 'long long' type.
Using 'long long' in C++ is a GNU extension, and specializing the C++ types
and functions for 'long long' is available as a GNU extension with the above
configuration switch, but again, it will not work on certain platforms.
Try it out and see.


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


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