mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
express: Fix compilation error with GCC
This commit is contained in:
parent
5475084717
commit
3d31f117e0
@ -33,9 +33,7 @@ WeakPointerToBase(To *ptr) {
|
||||
template<class T>
|
||||
INLINE WeakPointerToBase<T>::
|
||||
WeakPointerToBase(const PointerToBase<T> ©) {
|
||||
// This double-casting is a bit of a cheat to get around the inheritance
|
||||
// issue--it's difficult to declare a template class to be a friend.
|
||||
To *ptr = (To *)((const WeakPointerToBase<To> *)©)->_void_ptr;
|
||||
To *ptr = (To *)copy._void_ptr;
|
||||
_void_ptr = ptr;
|
||||
if (ptr != nullptr) {
|
||||
_weak_ref = ptr->weak_ref();
|
||||
|
Loading…
x
Reference in New Issue
Block a user