From owner-freebsd-questions Sun Dec 5 16:25:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from monterosa.urbanet.ch (monterosa.urbanet.ch [195.202.193.104]) by hub.freebsd.org (Postfix) with SMTP id 330CD14E1E for ; Sun, 5 Dec 1999 16:24:54 -0800 (PST) (envelope-from ahmed_benani@urbanet.ch) Received: (qmail 23276 invoked from network); 6 Dec 1999 00:24:53 -0000 Received: from unknown (HELO ?195.202.204.137?) (195.202.204.137) by monterosa.urbanet.ch with SMTP; 6 Dec 1999 00:24:53 -0000 X-Mailer: Microsoft Outlook Express for Macintosh - 4.01 (295) Date: Mon, 06 Dec 1999 01:21:46 +0100 Subject: Re : Missing header with g++? From: "Ahmed Benani" To: Arcady Genkin , freebsd-questions@FreeBSD.ORG Mime-version: 1.0 X-Priority: 3 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: quoted-printable Message-Id: <19991206002455.330CD14E1E@hub.freebsd.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG STOP SENDING YOUR MATERIAL. I RECEIVE OVER TWO HUNDRED MESSAGES PER DAY AND I NEVER SUBSCRIBE TO YOUR LITS: PLEASE STOP SENDING MESSAGES AHMED BENANI, ahmed_benani@urbanet.ch --------- ---------- >De=A0: Arcady Genkin >=C0 : freebsd-questions@FreeBSD.ORG >Objet=A0: Missing header with g++? >Date=A0: Dim 5 d=E9c 1999 23:22 > >Hi. This is kindof offtopic. > >I learned about a class `ostringstream' that allows sending ints and >floats into a string. I then tried finding it in headers, but only >found `strstream'. I proceded to use it, but then I was pointed out >that strstream::str() returns `* char', and therefore is liable to >cause memory leaks. Whereas ostringstrea::str() would return a >`string'. > >I greped around in /usr/include directories on my FreeBSD box, my >Linux box, and my school's Solaris installation, and couldn't find any >reference to ostringstream. > >Does this class or its equivallent exist somewhere? > >Thanks! >-- >Arcady Genkin http://wgaf.dyndns.org >"'What good is my pity? Is not the pity the cross upon which he who >loves man is nailed?..'" (Zarathustra - F. Nietzsche) > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message