This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::cout and long long problem
- To: Craig Rodrigues <rodrigc at mediaone dot net>
- Subject: Re: std::cout and long long problem
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Sun, 11 Feb 2001 16:34:49 -0500
- Cc: libstdc++ at gcc dot gnu dot org
- References: <20010211152757.A14899@mediaone.net>
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.