Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* TEMPLATES and DEC C++ compiler
@ 1993-12-14 20:46 Ghica
  0 siblings, 0 replies; only message in thread
From: Ghica @ 1993-12-14 20:46 UTC (permalink / raw)




We recently got the DEC C++ compiler (v1.2), and are trying to determine
its usability vis-a-vis templates.

It seems that to use any templates (when class definitions and functions
are in different files), one has to always use

	#pragma define_template <your template instantiation here>

(So if you're going to have a myList<int>, you would need to add
   #pragma define_template myList<int>)

or else the template does not get instantiated and the linker complains
about unknown symbols. I've tried the /INSTATIATE qualifier with no
luck.

The forced use of this pragma makes porting multi-platform library code
from other platforms a nightmare.

Is there anyone out there using DEC C++ in a template environment?
If yes, could you share some tips with me about using template with 
DEC C++ in the least painful way?

If there's no one using DEC C++, could you share with me which VMS/C++
compiler you are using?

thanks for your help,

-rg




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-12-14 20:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-14 20:46 TEMPLATES and DEC C++ compiler Ghica

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox