mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
work around interrogate bug
This commit is contained in:
parent
10d2821730
commit
bc88ef7212
@ -452,11 +452,21 @@ operator -> () const {
|
||||
// don't care which way it goes because either will be
|
||||
// correct.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef CPPPARSER
|
||||
template<class T>
|
||||
INLINE typename ConstPointerTo<T>::
|
||||
operator const typename PointerToBase<T>::To *() const {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user