This is the mail archive of the libstdc++-prs@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++/90


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]