I'm having some trouble getting pyccxml to parse specialized classes.  Consider 
the following simple header file:


#ifndef TEMPLATECLASS_HPP_
#define TEMPLATECLASS_HPP_

template <typename Type1, typename Type2>
class TemplateClass {
public:
    TemplateClass(){}

protected:
    int x;
    Type1 y;
    Type2 z;


};

#endif


Now, if I parse it with the following statements:
loggers.gccxml.setLevel(logging.WARNING)
config = parser.config_t(gccxml_path="gccxml", include_paths=includes, 
define_symbols=defines)
#file is above header file
decls = parser.parse([file], config)
xml = declarations.get_global_namespace(decls)

It parses OK, but xml.classes() returns nothing.  If I remove the template 
types, it works fine.  What am I doing wrong?

Thanks,
Josh
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to