ostringstream long long problem on Alpha/Tru64 with latest gcc3.2.1
Karel Gardas
kgardas@objectsecurity.com
Mon Nov 18 06:30:00 GMT 2002
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
More information about the Gcc
mailing list