delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/15/17:47:11

From: nathan_jerpe AT msn DOT com (Nathan Jerpe)
Newsgroups: comp.os.msdos.djgpp
Subject: template function support?
Date: 15 Jul 2001 14:42:47 -0700
Organization: http://groups.google.com/
Lines: 17
Message-ID: <f314717c.0107151342.68a804be@posting.google.com>
NNTP-Posting-Host: 63.22.47.88
X-Trace: posting.google.com 995233368 9815 127.0.0.1 (15 Jul 2001 21:42:48 GMT)
X-Complaints-To: groups-support AT google DOT com
NNTP-Posting-Date: 15 Jul 2001 21:42:48 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Greetings,

I have a template function that is not a member of a class.

I would like to declare the function in a .h file, then provide the
definition in a .cpp file like I do for all of my other functions.

According to my C++ books, if I want to do this I need to prefix my
template function's definition with the 'export' keyword.  If I don't
do this, my only option is to place the entire template function
definition in the header file.

Does DJGPP support 'export' in this manner?  If not, any less sloppy
way to do this?

Thanks,
Nathan

- Raw text -


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