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:
parent
30e5b5b666
commit
5236d3ddf3
3 changed files with 29 additions and 0 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue