Re: [pygccxml-development] Two patches proposal
Brought to you by:
mbaas,
roman_yakovenko
From: Berserker <ber...@ho...> - 2010-01-11 13:59:30
|
> >> class Foo > >> { > >> public: > >> Foo(int a = 0, bool v = true); > >> }; > >> > >> Using your code: > >> > >> if 1 != len( self.required_args ): > >> return False > >> > >> It doesn't produces a "convertible from int" becase the required_args are 0 > >> but here > >> we have a "convertible from int" class too. > >> > >> Tested again with mine it works: > >> > >> args = len(self.arguments) > >> if args != 1: > >> if args > 1: > >> for arg in self.arguments[1::]: > >> if not arg.default_value: > >> return False > >> else: > >> return False > >> > >> Let me know > > > > You are right. I will fix it this evening. > > I committed the fix. Please, let me know if it works for you or not. Hi Roman, sorry for the late response. I looked at your fix and it seems ok to me. Sorry but at the moment I can't update the svn because we are in a "release" period (I'll update soon btw). Just a "quick" question: I cannot find anything in the documentation about boost::unordered, is it supported by py++? We are using indexing_suite_version = 2 _________________________________________________________________ 25 Gygabite gratis online. Archivia e condividi i tuoi file! http://www.windowslive.it/skyDrive.aspx |