delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/08/08:26:31

From: bukinm AT inp DOT nsk DOT su (Michael Bukin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Template Problems
Date: 8 Apr 1997 08:11:11 GMT
Organization: BINP SD RAS
Message-ID: <5icuiv$m7q@sky.inp.nsk.su>
References: <Pine DOT 3 DOT 89 DOT 9704061452 DOT A18661-0100000 AT alpha DOT hcst DOT com>
Reply-To: bukinm AT inp DOT nsk DOT su
NNTP-Posting-Host: h-bukin.inp.nsk.su
Lines: 15
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>Once again, I'm asking for help with my template problems.  Could somebody
>please tell me why my code won't link?  It's available at:
>
>http://www.hcst.com/~bryan/univtmpl.zip
>

  Here is a citation from reno.tex from gcc2721s.zip:

*Template definitions must be visible*
     When you compile code with templates, the template definitions
     must come first (before the compiler needs to expand them), and
     template definitions you use must be visible in the current scope.

  Just put function definitions for particular class into
header file where you defined that class ans it should work.

- Raw text -


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