Test virtual conversion operators for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
be89441352
commit
d0c2731764
1 changed files with 10 additions and 0 deletions
|
|
@ -38,3 +38,13 @@
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%rename(OpInt) operator int;
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
class Ops {
|
||||||
|
public:
|
||||||
|
virtual ~Ops() {}
|
||||||
|
virtual operator int() { return 0; }
|
||||||
|
};
|
||||||
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue