From owner-freebsd-questions Sun Dec 5 18:55:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.pit.adelphia.net (alpha.pit.adelphia.net [24.48.44.2]) by hub.freebsd.org (Postfix) with ESMTP id EFB2014A13 for ; Sun, 5 Dec 1999 18:55:22 -0800 (PST) (envelope-from evstiounin@adelphia.net) Received: from evstiouninadelphia (surf15-170.pit.adelphia.net [24.48.53.170]) by alpha.pit.adelphia.net (8.9.2/8.9.2) with SMTP id VAA17643; Sun, 5 Dec 1999 21:55:18 -0500 (EST) Message-ID: <008001bf3f95$81231420$aa353018@evstiouninadelphia.net.pit.adelphia.net> From: "Mikhail Evstiounin" To: , "Arcady Genkin" Subject: Re: Missing header with g++? Date: Sun, 5 Dec 1999 21:56:32 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG sstream is a part of standard for C++ version 3.0. If you use gcc 2.7.2 which is a default compiler for FreeBSD, then you should take into considerentatio that is not up to version 3 - close, but not there. Basically, there are stream ans strstream. The first one is an attachment of stream class to "strings" amd the second one is pretty the same except it uses "char*" (or "C" style) strings instead of "string". If you really like to work with this stuff then I propose to install egcs 2.95.2 as an additional compiler set. -----Original Message----- From: Arcady Genkin To: freebsd-questions@freebsd.org Date: Sunday, December 05, 1999 5:23 PM Subject: Missing header with g++? >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