From: Peter Doerfler <doerfler@techinfo.rwth-aachen.de>
To: gcc-help@gcc.gnu.org, ernesto@ornl.gov
Subject: Re: ostrstream problem
Date: Wed, 28 Sep 2005 07:36:00 -0000 [thread overview]
Message-ID: <200509280934.42314.doerfler@techinfo.rwth-aachen.de> (raw)
In-Reply-To: <1127876423.25951.19.camel@localhost.localdomain>
Hi Ernest.
"strstream has been deprecated in the C++98 standard because the standards
committee felt it was superseded by stringstream, which better encapsulates
memory management. strstream is still an official part of the standard that
conforming C++ implementers must provide."
[distilled from Herb Sutter's http://www.gotw.ca/publications/mill19.htm]
So you can either use ostringstream or include backward/strstream (found by
grep). Note that I haven't checked if the ostrstream now in backward is the
same that used to be in the general include directory in previous versions.
HTH, Peter
On Wednesday 28 September 2005 05:00, Ernest L. Williams Jr. wrote:
> Hi,
>
> I am now using gcc 4.0.1.
>
> I get the following error:
> ====================================================
> error: ‘ostrstream’ was not declared in this scope
> ===================================================
>
>
> What header must I use to get ostrstream?
>
> I tried : #include <sstream>
>
> I am confused.
> Any help or reference is welcomed and appreciated.
>
>
>
> Thanks,
> Ernest L. Williams Jr.
next prev parent reply other threads:[~2005-09-28 7:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-28 3:00 Ernest L. Williams Jr.
2005-09-28 7:36 ` Peter Doerfler [this message]
2005-09-28 12:22 ` John Love-Jensen
2005-09-28 22:38 ` Ernest L. Williams Jr.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200509280934.42314.doerfler@techinfo.rwth-aachen.de \
--to=doerfler@techinfo.rwth-aachen.de \
--cc=ernesto@ornl.gov \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).