www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/27/05:47:29

Date: Fri, 27 Jan 1995 03:07:23 -0600 (CST)
From: Scott McCaskill <jmccaski AT CS DOT Trinity DOT Edu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: strstream

Greetings--

I am concerned by the fact that things like 

strstream AStrStreamObject;

AStrStrObject << "some text here";
cout << AStrStreamObject;

don't work.  Can anyone tell me if this is a gcc problem, or am I missing 
something?  The compiler (2.6.0) says that it can't determine which 
virtual function to use for operator << (on the line with cout), as 
though it doesn't know the type of AStrStreamObject (I'm not using 
pointers or references).  Any ideas?

thanks,
Scott

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Scott McCaskill                     Any sufficiently advanced technology is
(jmccaski AT cs DOT trinity DOT edu)           indistinguishable from a rigged demo.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019