diff --git a/Lib/python/director_h.swg b/Lib/python/director_h.swg index 7b17e2f78..9aa18541c 100644 --- a/Lib/python/director_h.swg +++ b/Lib/python/director_h.swg @@ -151,7 +151,7 @@ namespace Swig { { } - int get_own() + int get_own() const { return _own; } diff --git a/Lib/ruby/director.swg b/Lib/ruby/director.swg index 6d109bfbc..5e7498c0d 100644 --- a/Lib/ruby/director.swg +++ b/Lib/ruby/director.swg @@ -92,7 +92,7 @@ namespace Swig { { } - ruby_owntype get_own() + ruby_owntype get_own() const { return _own; }