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