From: yang qu <qu...@ya...> - 2003-11-09 22:42:39
|
Hi! I am using Opencxx as a C++ parser in my case. In part of the code, I need to identify an argument type and generate a new variable using the same type. for example, we have a function called "void test(template_arg<16> a);". I need to find the type of "a", which is "template_arg<16>" in the code, and generate a new variable with this type. I tried to use "TypeInfo" to catch the type and use "TypeInfo::MakePtree()" to generate a new ptree of the type. but unfortunately, because of the template specialization, it doesn't work. I got the following error "MOP error: in TypeInfo::MakePtree(), sorry, cannot handle this type". is there any quick fix to my problem? thank you! --yang __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree |