Author: mlandres Date: Thu Jul 24 13:23:16 2008 New Revision: 10660 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10660&view=rev Log: disable unSWIGable code Modified: trunk/libzypp/zypp/IdString.h Modified: trunk/libzypp/zypp/IdString.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/IdString.h?rev=10660&r1=10659&r2=10660&view=diff ============================================================================== --- trunk/libzypp/zypp/IdString.h (original) +++ trunk/libzypp/zypp/IdString.h Thu Jul 24 13:23:16 2008 @@ -62,9 +62,10 @@ static const IdString Empty; public: +#ifndef SWIG // Swig treats it as syntax error /** Evaluate in a boolean context <tt>( != \c Null )</tt>. */ using base::SafeBool<IdString>::operator bool_type; - +#endif /** Whether the string is empty. * This is true for \ref Null and \ref Empty. */ @@ -102,7 +103,9 @@ IdType id() const { return _id; } private: +#ifndef SWIG // Swig treats it as syntax error friend base::SafeBool<IdString>::operator bool_type() const; +#endif bool boolTest() const { return _id; } private: IdType _id; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org