From bc88ef7212916bfd2fc9de05d8bf79f7f984f696 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Fri, 22 Nov 2002 23:21:58 +0000 Subject: [PATCH] work around interrogate bug --- panda/src/express/pointerTo.I | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/panda/src/express/pointerTo.I b/panda/src/express/pointerTo.I index a52a52e32f..79023f51f8 100644 --- a/panda/src/express/pointerTo.I +++ b/panda/src/express/pointerTo.I @@ -452,11 +452,21 @@ operator -> () const { // don't care which way it goes because either will be // correct. //////////////////////////////////////////////////////////////////// + +#ifndef CPPPARSER template INLINE typename ConstPointerTo:: operator const typename PointerToBase::To *() const { return _ptr; } +#else +// work around lame interrogate parser bugs +template +INLINE ConstPointerTo:: +operator const PointerToBase::To *() const { + return _ptr; +} +#endif //////////////////////////////////////////////////////////////////// // Function: ConstPointerTo::p