Re: Overloaded C++ static methods and Python
Jim Easterbrook <[email protected]> Fri, 31 Mar 2023 11:45:56 +0100
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <[email protected]> |
On 30/03/2023 19:00, William S Fulton wrote: > > Overloading static with non-static... goodness! Might be worth analysing > to see if it only happens with -fastdispatch and/or -builtin. Thanks William. I've tried missing out both -fastdispatch and -builtin and still get the same result. As for overloading non-static and static methods - I suppose if the language doesn't forbid it then someone will do it. My real world example is in the libexiv2 photo metadata library. The 'xmpArrayType' method has both. https://exiv2.org/doc/classExiv2_1_1XmpValue.html#a1d47827b7a215239c530833aa006697b The static method is of little use so I've used %ignore on it to get round the problem. -- Jim Easterbrook <http://www.jim-easterbrook.me.uk/>