This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: include strstream instead of strstream.h
- To: libstdc++ at gcc dot gnu dot org
- Subject: Re: include strstream instead of strstream.h
- From: Ross Smith <ross dot s at ihug dot co dot nz>
- Date: Mon, 13 Aug 2001 09:57:14 +1200
- CC: gcc-patches at gcc dot gnu dot org
- Organization: Ihug
- References: <Pine.SOL.3.91.1010812093704.26777A-100000@taarna.cygnus.com>
Benjamin Kosnik wrote:
>
> > I think his point is that -we- are including that header in -our- own
> > source code. See egcs/libstdc++-v3/src/strstream.cc:50.
>
> Right: this file supports the deprecated header. Thus, the warning is
> accurate.
>
> > That is why I find his patch OK.
>
> Substituting one deprecated header for the other? Why?
No, substituting a standard but deprecated header (<strstream>, which is
in the C++ standard but deprecated in favour of <sstream>) for a
completely nonstandard one (<strstream.h>, which has never been in any
standard).
--
Ross Smith <ross.s@ihug.co.nz> The Internet Group, Auckland, New Zealand
========================================================================
"Unix has always lurked provocatively in the background of the operating
system wars, like the Russian Army." -- Neal Stephenson