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 latestgcc3.2.1
- From: Karel Gardas <kgardas at objectsecurity dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Mon, 18 Nov 2002 11:25:54 +0100 (CET)
- Subject: Re: ostringstream long long problem on Alpha/Tru64 with latestgcc3.2.1
On Mon, 18 Nov 2002, Phil Edwards wrote:
> 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.
Good, but this thread end at Mon, 18 Mar 2002. AFAIK this was before
gcc3.2 branch and since gcc3.2.x doesn't provide this feature, I guess
nobody haven't done it yet - at least on gcc3.2 branch. Is it already
commited/implemented in main-line?
Thanks,
Karel
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com