From 4d2e1e87d6036c0195354a9d7c8b6a8101317f8e Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sat, 11 Dec 2004 23:54:07 +0000 Subject: [PATCH] global fix for operator*(), now mapped as __ref__ git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6861 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/swig.swg | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Lib/swig.swg b/Lib/swig.swg index 9fc4775d2..408f53172 100644 --- a/Lib/swig.swg +++ b/Lib/swig.swg @@ -80,18 +80,9 @@ /* Smart pointer handling */ -%rename(__deref__) operator->; -#if !definded(SWIG_WRAP_OPERATOR_REF) && !definded(SWIG_NO_WRAP_OPERATOR_REF) -#define SWIG_WRAP_OPERATOR_REF -#endif - -#ifdef SWIG_WRAP_OPERATOR_REF -%rename(__ref__) operator*(); -%rename(__ref__) operator*() const; -#else -%ignorewarn("396:operator*() ignored") operator*(); -%ignorewarn("396:operator*() const ignored") operator*() const; -#endif +%rename(__deref__) *::operator->; +%rename(__ref__) *::operator*(); +%rename(__ref__) *::operator*() const; /* Define std namespace */ namespace std {