Re: [pygccxml-development] USE_CALLDEF_ORGANIZER
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2010-01-27 14:59:22
|
On Wed, Jan 27, 2010 at 3:51 PM, Berserker <ber...@ho...> wrote: > As described in the documentation I have registration order problems :) > USE_CALLDEF_ORGANIZER seems the ideal solution to me but as far as > I understard it works only for functions with one param right? I have > methods > like these: > class Foo > { > public: > void setAttribute(const std::string &name, bool value); > void setAttribute(const std::string &name, int value); > void setAttribute(const std::string &name, const std::string &value); > }; > > Would be easy to support situations like this? It is not going to be too difficult. But, If I were you, I would not go this way. I would drop "overloading" and gave the functions different name. The interface exposed to the user is fragile and could be easily broken with addition/deletion of a function. Let me know if you still want the change. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |