www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/18/21:02:59

From: unjl AT ab272 DOT rz DOT uni-karlsruhe DOT de (Johannes Dieterich)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help me please
Date: 18 Mar 1998 17:57:01 GMT
Organization: University of Karlsruhe, Germany
Lines: 32
Message-ID: <6ep1td$4ui$1@nz12.rz.uni-karlsruhe.de>
NNTP-Posting-Host: ab272.rz.uni-karlsruhe.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Johannes Dieterich (unjl AT ab272 DOT rz DOT uni-karlsruhe DOT de) wrote:
> Hi there.

> Trying to compile bar.cc I encountered the following errors:
[Rest snipped]


he he he
Seems I'm replying to my own post. Two hours after starting this thread
(half an hour spent in front of the computer) I've identified the problem.
It occurs whenever you include <list> (or <algo> or any other lib that uses
<function.h>) and <string> in the same compilation unit AND <list> is 
included before <string>. 
The reason is, the operator deklarations the error messages refer to in
<sinst.h> (included somehow from <string>) somehow match the operators in
<function.h> in an inproper way.
But if you include <string> before <list> anything goes fine and the
template instantiation is not ambiguous. This is a little weird.

Does'nt matter. The workaround works around.
I promise next time I spend a little more time on the problem before posting
a cry for help. Fortunately my I-net access is absolutely free. :-)

What I would be interested in: Does this error occur also in other
C++-Compilers ?

Regards
	Joe

--
Johannes Dieterich  ***  eMail unjl AT rz DOT uni-karlsruhe DOT de

- Raw text -


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