mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -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
|
// 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user