fix [ 1432152 ] %rename friend operators in namespace

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8825 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-16 06:59:06 +00:00
commit 5236d3ddf3
3 changed files with 29 additions and 0 deletions

View file

@ -47,3 +47,22 @@ namespace oss
%template(Natural_BP) Natural<BinaryPolarization>;
}
}
%rename("equals") operator==;
%inline %{
namespace Utilities {
class Bucket
{
public:
Bucket() : m_left(0) {}
friend bool operator==(const Bucket& lhs, const Bucket& rhs){
return ( rhs.m_left == lhs.m_left );
}
private:
int m_left;
};
}
%}