delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/24/22:18:45

From: gyroscope <s336627 AT student DOT uq DOT edu DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: templates in DJGPP
Date: Mon, 25 Aug 1997 11:27:03 +1000
Organization: University of Queensland
Lines: 18
Message-ID: <3400DF67.3545@student.uq.edu.au>
Reply-To: s336627 AT student DOT uq DOT edu DOT au
NNTP-Posting-Host: s339941.student.uq.edu.au
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

At the risk of looking foolish, I am wondering what *exactly* is the
syntax for implementing templates in DJGPP.  I tried this code snippet
from Stroustrup's 'C++ Programming Language' and it gives me a parse
error before <  :

template<class T>
class stack {
	T* v;
	etc.
};

(i read info and it brought up only how the compiler deals w/ templates)

-Tobias
-----------------------------------------------------------------------
"...and the enemy cried with frustration as they read the message..."
	- the book of delaying tactics.
-----------------------------------------------------------------------

- Raw text -


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