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/
_______________________________________________
gccxml mailing list
[email protected]
http://www.gccxml.org/mailman/listinfo/gccxml

Reply via email to