Re: [pygccxml-development] Removing template default arguments?
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2008-08-26 19:07:18
|
On Tue, Aug 26, 2008 at 5:09 PM, Gustavo Carneiro <gjc...@gm...> wrote: > Attached. Okey. There is no bug in pygccxml, if I look on your test case. I still don't understand how you get std::map< string, int >? I would like to explain few things, that I hope, will make clear to you what and how to use. declaration_t class has 4 different properties, related to its name I will explain them, using the following example: namespace ns{ std::vector< int > do_smth(); } For do_smth return type: * name - the class name - vector< int, std::allocator< int > > * partial name - the class name without default template args - vector< int > * decl_string - full class name - std::vector< int, std::allocator< int > > * partial_decl_string - the full class name without default template args - std::vector< int > In most case, you want to use [partial_]decl_string, because it allows you to use the class in "other context". HTH -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |