Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ghica@fig.citib.com (Ghica)
Subject: TEMPLATES and DEC C++ compiler
Date: 14 Dec 1993 15:46:56 -0500	[thread overview]
Message-ID: <2el8o0$f7@duck.fig.citib.com> (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




                 reply	other threads:[~1993-12-14 20:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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