Go backward to Example Go up to RT++ Type Declarations Go forward to Threads |
Atom
and Ref
are macros creates a syntactical
problem with template types. It is e.g. not possible to declare
since the comma is interpreted by the preprocessor as the separator for arguments ofAtom(TemplateType<ArgType1,ArgType2>)
Atom
, not of TemplateType
. However, this
problem may be overcome by declaring
(wheretypedef TemplateType<ArgType1,ArgType2> TA; Atom(TA);
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.