libstdc++/8655: Problematic behaviour of std::ends

Wolfgang Bangerth bangerth@ticam.utexas.edu
Thu Nov 28 15:03:00 GMT 2002


The following reply was made to PR libstdc++/8655; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>,
   Ioannis Papadopoulos <Ioannis.Papadopoulos@cern.ch>
Cc:  
Subject: Re: libstdc++/8655: Problematic behaviour of std::ends
Date: Wed, 20 Nov 2002 10:49:08 -0600 (CST)

 Ioannis,
 
 This problem is exactly what PR 5735 was about. I found that equally 
 annoying, but apparently gcc2.95 was not standards conforming, and gcc3 
 is. I work around this by only appending the std::ends when using gcc2.95, 
 using the preprocessor for this. Unfortunately, gcc2.95 needs this since 
 otherwise it will return a non-terminated string, which is of course 
 useless when assigned to a char*. This is one of the more annoying 
 incompatibilities between 2.95 and 3.x :-(
 
 Read the audit trail of this report.
 
 Regards
   Wolfgang
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                                www: http://www.ticam.utexas.edu/~bangerth
 
 
 



More information about the Gcc-prs mailing list