\"\" \"\" \"\"
Go backward to Example
Go up to RT++ Type Declarations
Go forward to Threads
RISC-Linz logo

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.
Author: Wolfgang Schreiner
Last Modification: April 12, 1997