swig/SWIG/Examples/test-suite/private_assign.i
Dave Beazley 516036631c The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00

21 lines
364 B
OpenEdge ABL

// A class with a private assignment operator.
// This is rare, but sometimes used with singletons and
// objects that have complicated state.
%module private_assign
%inline %{
class Foo {
private:
Foo &operator=(const Foo &f) {
return *this;
}
public:
void bar() { }
};
Foo blah() {
return Foo();
};
%}