diff --git a/Lib/swig.swg b/Lib/swig.swg index 188c47e03..416d40982 100644 --- a/Lib/swig.swg +++ b/Lib/swig.swg @@ -683,7 +683,7 @@ public: #else operator T&() const { return *pointer.ptr; } #endif - T *operator&() { return pointer.ptr; } + T *operator&() const { return pointer.ptr; } };%} /*