From 3977096703381922078
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,dafbff8298483cc7
X-Google-Attributes: gidf78e5,public
From: Dietmar Kuehl <dietmar.kuehl@claas-solutions.de>
Subject: Re: String Streams
Date: 2000/02/24
Message-ID: <88slkp$ue8$1@nnrp1.deja.com>#1/1
X-Deja-AN: 589063504
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
References: <MPG.131aaad04385bc549897ac@news.mindspring.com>
X-Authentication-Warning: backdraft.briar.org: smap set sender to <news@dejanews.com> using -f
X-Http-User-Agent: Mozilla/4.61 [en] (X11; I; Linux 2.2.10 i586)
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 951350418 mail2news:2602 mail2news mail2news.demon.co.uk
X-Http-Proxy: 1.0 x21.deja.com:80 (Squid/1.1.22) for client 62.154.182.162
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Tue Feb 22 00:35:36 2000 GMT
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Mydeja-Info: XMYDJUIDdietmar_kuehl
Newsgroups: comp.std.c++

Hi,
In article <MPG.131aaad04385bc549897ac@news.mindspring.com>,
  Dave Hardenbrook <DaveH47@mindspring.com> wrote:
> I'm getting conflicting info: Which is the correct header for ANSI
> compliant String streams, <sstream> or <strstream>?

Both headers are in the C++ standard library. However, the header
<strstream> is deprecated and you should prefer the classes from the
header <sstream> in new software: These classes are much less error
prone than the classes from the other header. Also, the string stream
classes from <sstream> work with arbitrary character types while those
from <strstream> only work for 'char'.

BTW, the C++ is not only an ANSI standard, it is an ISO standard.
--
<mailto:dietmar.kuehl@claas-solutions.de>
homepage: <http://www.informatik.uni-konstanz.de/~kuehl>


Sent via Deja.com http://www.deja.com/
Before you buy.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




