sourcehook/generate/sh_memfuncinfo.hxx
changeset 59 8edcba00a103
parent 58 71016f952503
child 61 f9b4e9ded36d
     1.1 --- a/sourcehook/generate/sh_memfuncinfo.hxx	Thu May 05 10:40:47 2005 +0000
     1.2 +++ b/sourcehook/generate/sh_memfuncinfo.hxx	Thu May 05 13:13:16 2005 +0000
     1.3 @@ -305,6 +305,29 @@
     1.4  	}
     1.5  
     1.6  @ENDARGS@
     1.7 +
     1.8 +	// GCC needs this, MSVC doesn't like them
     1.9 +#if SH_COMP != SH_COMP_MSVC
    1.10 +
    1.11 +@VARARGS@
    1.12 +	template<class X, class Y, class RetType@, @@class Param%%|, @>
    1.13 +	inline void GetFuncInfo(Y *ptr, RetType(X::*mfp)(@Param%%|, @@, @...), MemFuncInfo &out)
    1.14 +	{
    1.15 +		RetType(Y::*mfp2)(@Param%%|, @@, @...) = mfp;
    1.16 +		MFI_Impl<sizeof(mfp2)>::GetFuncInfo(mfp2, out);
    1.17 +	}
    1.18 +
    1.19 +	template<class X, class Y, class RetType@, @@class Param%%|, @>
    1.20 +		inline void GetFuncInfo(Y *ptr, RetType(X::*mfp)(@Param%%|, @@, @...) const, MemFuncInfo &out)
    1.21 +	{
    1.22 +		RetType(Y::*mfp2)(@Param%%|, @@, @...) const = mfp;
    1.23 +		MFI_Impl<sizeof(mfp2)>::GetFuncInfo(mfp2, out);
    1.24 +	}
    1.25 +
    1.26 +@ENDARGS@
    1.27 +
    1.28 +#endif
    1.29 +
    1.30  }
    1.31  
    1.32  #endif