libstdc++/90

Guy Bolton King Guy_Bolton_King@non.agilent.com
Fri Sep 22 03:57:00 GMT 2000


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.


More information about the Libstdc++-prs mailing list