delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/17/20:49:07

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: djgpp & templates
Date: Thu, 15 May 1997 10:10:26 -0700
Organization: Alcyone Systems
Lines: 22
Message-ID: <337B4382.570A5863@alcyone.com>
References: <Pine DOT BSF DOT 3 DOT 95q DOT 970508231226 DOT 273B-100000 AT rook DOT matranet DOT org> <5ldh84$dr6 AT isis DOT fiu DOT edu>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

daniel k rathjens wrote:

> you need to specify a type that the function is going to return.
> template <class T>
> void myclass<T>::myclass(T tinf)
> ^^^^
>   like that

Not specifying a return type is perfectly standard C and C++ -- it
defaults to a return type of int.

Without more information, such as what the compiler errors were (which may
well have been in the original message; it hasn't shown up here yet) it's
a little hard to help further.

-- 
       Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
                     Alcyone Systems /   web / http://www.alcyone.com/max/
San Jose, California, United States /  icbm / 37 20 07 N  121 53 38 W
                                   \
                      "The future / is right there."
                                 / Bill Moyers
rum for this question would have
been comp.lang.c, as this (as you had already known) is purely a C
question and is not specific to DJGPP.

-- 
       Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
                     Alcyone Systems /   web / http://www.alcyone.com/max/
San Jose, California, United States /  icbm / 37 20 07 N  121 53 38 W
                                   \
                      "The future / is right there."
                                 / Bill Moyers

- Raw text -


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