delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/12/09:19:10

Message-ID: <391C05F1.1AF32F2D@gmx.de>
From: Ole Reinartz <ole DOT reinartz AT gmx DOT de>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.0.35 i586)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: template error
References: <39190F26 DOT 609A37C8 AT home DOT com>
Lines: 35
Date: Fri, 12 May 2000 12:44:49 GMT
NNTP-Posting-Host: 172.25.107.99
X-Complaints-To: newsmaster AT nokia DOT com
X-Trace: news1.nokia.com 958135489 172.25.107.99 (Fri, 12 May 2000 15:44:49 EET DST)
NNTP-Posting-Date: Fri, 12 May 2000 15:44:49 EET DST
Organization: Nokia
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Robin Johnson wrote:

> I am getting an error that I am at a complete loss to explain...
> The g++ FAQ mentions nothing like it, so I thought I'd ask just to be sure...
>
> Error: template declaration of `typedef void ( tCallBack)(struct tNode<tItem>
> *&)'
>
> Code Segment:
> template <class tItem>
> struct tNode {
>  tItem data;
>  tNode *right, *left;
> };
>
> template <class tItem>
> typedef void tCallBack(tNode<tItem>* &node); //error here
>

Hugh,
What do you want to typef here to what? Is it possible that the 'typedef' is
just wrong here?

Ole

>
> ---
> Robin Hugh Johnson
> "Robbat2"
> QTOD: "I used to be an idealist, but I got mugged by reality."
> E-Mail     : robbat2 AT orbis-terrarum DOT net
> ICQ#       : 30269588 or 41961639
> Home Page  : http://www.orbis-terrarum.net
> Time Zone  : Pacific Daylight (GMT - 8)

- Raw text -


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