From 19492c7833d95021e1425235a6989ab21aa3fea5 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 4 Oct 2006 17:34:45 +0000 Subject: [PATCH] Test virtual conversion operators for directors git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9411 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/director_frob.i | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SWIG/Examples/test-suite/director_frob.i b/SWIG/Examples/test-suite/director_frob.i index d8dde7d8e..02768cf5c 100644 --- a/SWIG/Examples/test-suite/director_frob.i +++ b/SWIG/Examples/test-suite/director_frob.i @@ -38,3 +38,13 @@ { }; %} + +%rename(OpInt) operator int; + +%inline %{ + class Ops { + public: + virtual ~Ops() {} + virtual operator int() { return 0; } + }; +%}