Browse Source

work around interrogate bug

cxgeorge 23 years ago
parent
commit
bc88ef7212
1 changed files with 10 additions and 0 deletions
  1. 10 0
      panda/src/express/pointerTo.I

+ 10 - 0
panda/src/express/pointerTo.I

@@ -452,11 +452,21 @@ operator -> () const {
 //               don't care which way it goes because either will be
 //               don't care which way it goes because either will be
 //               correct.
 //               correct.
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
+
+#ifndef CPPPARSER
 template<class T>
 template<class T>
 INLINE typename ConstPointerTo<T>::
 INLINE typename ConstPointerTo<T>::
 operator const typename PointerToBase<T>::To *() const {
 operator const typename PointerToBase<T>::To *() const {
   return _ptr;
   return _ptr;
 }
 }
+#else
+// work around lame interrogate parser bugs
+template<class T>
+INLINE ConstPointerTo<T>::
+operator const PointerToBase<T>::To *() const {
+  return _ptr;
+}
+#endif
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: ConstPointerTo::p
 //     Function: ConstPointerTo::p