Browse Source

Revert code that is triggering an odd compiler quirk in MSVC

rdb 9 years ago
parent
commit
c2abb4b2f8
1 changed files with 0 additions and 16 deletions
  1. 0 16
      dtool/src/interrogatedb/extension.h

+ 0 - 16
dtool/src/interrogatedb/extension.h

@@ -47,14 +47,6 @@ invoke_extension(T *ptr) {
   return ext;
   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.
  * The const version of the above function.
  */
  */
@@ -66,12 +58,4 @@ invoke_extension(const T *ptr) {
   return ext;
   return ext;
 }
 }
 
 
-template<class T>
-inline const Extension<T>
-invoke_extension(const T &ptr) {
-  Extension<T> ext;
-  ext._this = (T *) &ptr;
-  return ext;
-}
-
 #endif
 #endif