[GCC-XML] GCC-XML 0.9 - default values
Roman Yakovenko
roman.yakovenko at gmail.com
Wed Nov 7 15:01:11 EST 2007
Hi. I am updating pygccxml and found that new GCC-XML introduced new
challenge - default value.
Consider next code:
void do_smth( const std::vector<std::string>
&types=std::vector<std::string>() );
The previous version generated next string as default argument. ( For
clarity I replaced std::basic_string< ... > with std::string )
vector<std::string >,std::allocator<std::string > >
>((&allocator<std::string > >()))
The new version is
std::vector<std::string, std::allocator<std::string > >(((const
std::allocator<std::string >&)((const std::allocator<std::string >*)(&
std::allocator<std::string >()))))
As you can see the new version is more complex and it is very difficult to
"fix" it.
My question is: is default values dumped as is to the xml file or there is
some code that transforms a binary representation to string? If there is
such code can you point me to it?
Thanks.
P.S. pygccxml was able to "fix" the default values in GCCXML 0.7, but I am
not sure it is possible with the new version.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20071107/d62c33fd/attachment-0002.html>
More information about the gccxml
mailing list