Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: No match for 'operator<<' in '((HttpRequest* Date: Thu, 14 Jul 2011 16:58:22 +1200 Lines: 26 Message-ID: <987bd9F78bU3@mid.individual.net> References: <2a9f24c1-ac62-4d44-b518-e30a9877fc13@f39g2000prb.googlegroups.com> <9871f3F78bU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net l5TrH5oc2Xt1fYqtrcEmfAjXyLx1NeVjXWPEP6L6WlAuHgrLQF Cancel-Lock: sha1:R4dWkS0v1DGGuisbuCc05Y42ueU= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:7790 On 07/14/11 02:42 PM, eric wrote: > On Jul 13, 7:08 pm, Ian Collins wrote: >> >> You don't have an operator<<( Socket*, const std::string& ) declared >> anywhere. > > I add > // ostream& operator<<(const std::string&) {} > in class Socket > (and : public Socket at class HttpRequest) > or > > // ostream& operator<<( Socket*, const std::string& ) {} > in class HttpRequest > > neither compile success > /* that book is claim tested good on visual c++ 7.1 in window xp, > would anyone try and post your result? */ > so > please help again > and thanks a lot in advance, Eric Post your code and errors. -- Ian Collins