Go backward to Example
Go up to RT++ Type Declarations
Go forward to Threads

Template Types

The fact that Atom and Ref are macros creates a syntactical problem with template types. It is e.g. not possible to declare
Atom(TemplateType<ArgType1,ArgType2>)
since the comma is interpreted by the preprocessor as the separator for arguments of Atom, not of TemplateType. However, this problem may be overcome by declaring
typedef TemplateType<ArgType1,ArgType2> TA;
Atom(TA);
(where TA is an arbitrary identifier not used elsewhere) or by manually inserting the macro definitions provided in the RT++ header file rt++/rt_type.h.
Wolfgang.Schreiner@risc.uni-linz.ac.at
Id: main.tex,v 1.10 1996/04/04 11:45:47 schreine Exp

Prev Up Next