Re: [pygccxml-development] Removing template default arguments?
Brought to you by:
mbaas,
roman_yakovenko
|
From: Gustavo C. <gjc...@gm...> - 2008-08-26 20:45:59
|
2008/8/26 Roman Yakovenko <rom...@gm...>
> 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".
partial_decl_string works perfectly. Thank you!
--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
|