This is the mail archive of the
libstdc++-prs@sources.redhat.com
mailing list for the libstdc++ project.
Re: libstdc++/90
- To: nobody at sourceware dot cygnus dot com
- Subject: Re: libstdc++/90
- From: Guy Bolton King <Guy_Bolton_King at non dot agilent dot com>
- Date: 22 Sep 2000 10:57:02 -0000
- Cc: libstdc++-prs at sourceware dot cygnus dot com,
- Reply-To: Guy Bolton King <Guy_Bolton_King at non dot agilent dot com>
The following reply was made to PR libstdc++/90; it has been noted by GNATS.
From: Guy Bolton King <Guy_Bolton_King@non.agilent.com>
To: libstdc++-gnats@sourceware.cygnus.com
Cc:
Subject: Re: libstdc++/90
Date: Fri, 22 Sep 2000 11:51:11 +0100
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=90&database=libstdc++
Sorry, the attachment doesn't appeared to have made it:
#include <iostream>
#include <sstream>
int main()
{
std::stringstream foo("0x2a");
int i;
foo.setf(std::ios::fmtflags(0), std::ios::basefield);
foo >> i;
assert(!foo.fail());
std::cout << i;
}
Clarification: in the presence of no fmtflags, the input operator should
behave like strtol(x, y, 0); instead, the function fails.
Guy.