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

Wolfgang Bangerth bangerth@ticam.utexas.edu
Wed Nov 20 09:21:00 GMT 2002


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-bugs mailing list