This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/8655: Problematic behaviour of std::ends
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: gcc-bugs at gcc dot gnu dot org, <gcc-gnats at gcc dot gnu dot org>, Ioannis Papadopoulos <Ioannis dot Papadopoulos at cern dot ch>
- Date: Wed, 20 Nov 2002 10:49:08 -0600 (CST)
- Subject: 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