This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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




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