This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ostringstream long long problem on Alpha/Tru64 with latest gcc3.2.1
On Mon, Nov 18, 2002 at 11:01:15AM +0100, Karel Gardas wrote:
> > And there's the problem. The C++ library depends on the underlying C library
> > to do the formatting of numbers. Specifically, the "string to long long"
> > and "string to unsigned long long" functions. If your system's C library
> > doesn't have those functions, then C++ can't do long long I/O.
>
> Yes, I agree that that's the right behaviour, but IMHO it might be
> possible to use simple strtol and strtoul function on platforms where
> sizeof(long long) == sizeof(long). Am I wrong?
Even better, see the thread starting here
http://gcc.gnu.org/ml/libstdc++/2002-03/msg00263.html
and terminating with Benjamin's request to Nathan to provide a patch.
Phil
--
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002