www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/19/20:50:09

Date: Thu, 19 Mar 1998 17:49:19 -0800 (PST)
Message-Id: <199803200149.RAA14439@adit.ap.net>
Mime-Version: 1.0
To: unjl AT ab272 DOT rz DOT uni-karlsruhe DOT de (Johannes Dieterich), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Help me please

At 05:57  3/18/1998 GMT, Johannes Dieterich wrote:
>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.

Could somebody who knows more C++ than me decide whether this is a
reasonable thing for the compiler to barf on?
>
>Does'nt matter. The workaround works around.

That's what I'm afraid of. :\ A workaround is fine, for you, but it doesn't
help it get fixed for the future.

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

A good question, but I don't have any other ones to try.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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