On Mon, Mar 31, Duncan Mac-Vicar P. wrote:
This statement is present in some sat wrapper classes, and swig is unable to parse it.
The idea is to have the biggest amount of bindings completely autogenerated out of the headers, so they fix themselves with API changes, and at least classes using this idiom have to be copied and "cleaned", which of course means syncing them.
Is there any similar idiom for this, which is more likely to be parsed by swig? (I remember we used to have the same effect using define), because the current idiom only appears only in:
No we use it as well in e.g. Resolvable, ResObject, .. to adjust the visibility of symbols defined in a non-public base class: class Resolvable : protected sat::Solvable { public: using sat::Solvable::isSystem; using sat::Solvable::kind; ... class ResObject : public Resolvable { public: using sat::Solvable::supportsLocale; .. You can do this as well explicit: bool supportsLocale( const Locale & locale_r ) const { return sat::Solvable::supportsLocale( locale_r ); } bool supportsLocale( const LocaleSet & locales_r ) const; { return sat::Solvable::supportsLocale( locales_r ); } But as you see, you have to do it for each and every overloaded version of a method, and must not forget it if you add new versions to sat::Solvable. Using does it all in one. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org