From owner-freebsd-questions Sun Dec 5 14:22:53 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc3.on.home.com (ha1.rdc3.on.home.com [24.2.9.68]) by hub.freebsd.org (Postfix) with ESMTP id 5B7E915480 for ; Sun, 5 Dec 1999 14:22:50 -0800 (PST) (envelope-from a.genkin@utoronto.ca) Received: from main.wgaf.net ([24.114.152.71]) by mail.rdc3.on.home.com (InterMail v4.01.01.02 201-229-111-106) with ESMTP id <19991205222050.XMYE21594.mail.rdc3.on.home.com@main.wgaf.net> for ; Sun, 5 Dec 1999 14:20:50 -0800 Received: from antipode by main.wgaf.net with local (Exim 2.05 #1 (Debian)) id 11uk3N-0005sn-00; Sun, 5 Dec 1999 17:22:49 -0500 To: freebsd-questions@freebsd.org Subject: Missing header with g++? X-Face: 0=A/O5-+sE[Tf%X>rYr?Y5LD4,:^'jaJ!4jC&UR*ZrrK2>^`g22Qeb]!:d;}2YJ|Hq"LHdF OX`jWX|AT-WVFQ(TPhFVak)0nt$aEdlOq=1~D,:\z5QlVOrZ2(H,mKg=Xr|'VlHA="r Organization: Wgaf From: Arcady Genkin Date: 05 Dec 1999 17:22:49 -0500 Message-ID: <877lit2fk6.fsf@main.wgaf.net> Lines: 20 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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