diff -r 71016f952503 -r 8edcba00a103 sourcehook/generate/sh_memfuncinfo.hxx --- a/sourcehook/generate/sh_memfuncinfo.hxx Thu May 05 10:40:47 2005 +0000 +++ b/sourcehook/generate/sh_memfuncinfo.hxx Thu May 05 13:13:16 2005 +0000 @@ -305,6 +305,29 @@ } @ENDARGS@ + + // GCC needs this, MSVC doesn't like them +#if SH_COMP != SH_COMP_MSVC + +@VARARGS@ + template + inline void GetFuncInfo(Y *ptr, RetType(X::*mfp)(@Param%%|, @@, @...), MemFuncInfo &out) + { + RetType(Y::*mfp2)(@Param%%|, @@, @...) = mfp; + MFI_Impl::GetFuncInfo(mfp2, out); + } + + template + inline void GetFuncInfo(Y *ptr, RetType(X::*mfp)(@Param%%|, @@, @...) const, MemFuncInfo &out) + { + RetType(Y::*mfp2)(@Param%%|, @@, @...) const = mfp; + MFI_Impl::GetFuncInfo(mfp2, out); + } + +@ENDARGS@ + +#endif + } #endif