mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Revert code that is triggering an odd compiler quirk in MSVC
This commit is contained in:
parent
22f0b50851
commit
c2abb4b2f8
@ -47,14 +47,6 @@ invoke_extension(T *ptr) {
|
||||
return ext;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
inline Extension<T>
|
||||
invoke_extension(T &ptr) {
|
||||
Extension<T> ext;
|
||||
ext._this = &ptr;
|
||||
return ext;
|
||||
}
|
||||
|
||||
/**
|
||||
* The const version of the above function.
|
||||
*/
|
||||
@ -66,12 +58,4 @@ invoke_extension(const T *ptr) {
|
||||
return ext;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
inline const Extension<T>
|
||||
invoke_extension(const T &ptr) {
|
||||
Extension<T> ext;
|
||||
ext._this = (T *) &ptr;
|
||||
return ext;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user