www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/08/03:45:51

From: "John Harrison" <jahhaj AT bigfoot DOT com>
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp
References: <f6Yt5.55$t42 DOT 3484 AT nsw DOT nnrp DOT telstra DOT net> <4j%t5.6782$vo6 DOT 96767 AT news2-win DOT server DOT ntlworld DOT com> <UX%t5.105$t42 DOT 4862 AT nsw DOT nnrp DOT telstra DOT net>
Subject: Re: passing istringstream as istream in param
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <SD0u5.7287$vo6.98092@news2-win.server.ntlworld.com>
Date: Fri, 8 Sep 2000 08:33:51 +0100
NNTP-Posting-Host: 213.104.54.85
X-Complaints-To: abuse AT ntlworld DOT com
X-Trace: news2-win.server.ntlworld.com 968398450 213.104.54.85 (Fri, 08 Sep 2000 08:34:10 BST)
NNTP-Posting-Date: Fri, 08 Sep 2000 08:34:10 BST
Organization: ntlworld News Service
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Mostyn Lee" <mostyn AT ibc DOT com DOT au DOT SPAM> wrote in message
news:UX%t5.105$t42 DOT 4862 AT nsw DOT nnrp DOT telstra DOT net...
> thanks john, but i think you misunderstand my problem, which is not with
the
> generated code, merely with the interface to that code.  I cant get my
> character string in the form of istream * for the lexer to do its parse.
>

Well I'm pretty sure that somewhere you are mixing up <iostream.h> which
defines a class called istream and  <iostream> which defines a different
class called std::basic_istream<T, char_traits<T>> and a typedef
std::istream.

After all you said that trying to declare an istream results in an ambiguous
symbol error, and your error message indicates that you have a class called
istream (which can only happen if you are including <iostream.h>) somewhere
in your program.

Basically there is nothing wrong with the code you have posted and the only
explaination I can think of is that you have included both the <iostream>
and <iostream.h> headers somewhere. The confusing thing is that they both
define a symbol called istream.

john



- Raw text -


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