From: Grzegorz J. <ja...@he...> - 2003-07-18 00:15:09
|
On Tue, 15 Jul 2003, Winnie wrote: > Dear all, > > When I tried to use the complier generated by the Open C++ to translate a > source (base-level) program (i.e. compile with option -E -n only), I got > an error message: "the specified metaclass is not for templates." if the > class is templated inside the source program. I would like to know if > Open C++ support template classes and if so, what's the syntax and usage? > Thanks a lot! You need to derive your metaclass from TemplateClass, not Class, see file ref-appendix.html, the existing support is described here. There is some more template-related code in exp_templates CVS branch (e.g. for specialization, i.e. creating class metaobjects from template metaobject), but it may require some tweaking, depending on your needs. Best regards Grzegorz > > Regards, > Winnie > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps1 > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |