sourcehook/sourcehook.h
changeset 235 df7d7d108475
parent 233 6d19421c552c
child 238 c27105949293
     1.1 --- a/sourcehook/sourcehook.h	Wed Aug 09 07:25:48 2006 +0000
     1.2 +++ b/sourcehook/sourcehook.h	Wed Aug 09 07:42:16 2006 +0000
     1.3 @@ -501,12 +501,12 @@
     1.4  	{
     1.5  		inline static T* GetOrigRet(ISourceHook *shptr)
     1.6  		{
     1.7 -			T &ref = *reinterpret_cast<const ReferenceCarrier<T&>::type *>(shptr->GetOrigRet());
     1.8 +			T &ref = *reinterpret_cast<const typename ReferenceCarrier<T&>::type *>(shptr->GetOrigRet());
     1.9  			return &ref;
    1.10  		}
    1.11  		inline static T* GetOverrideRet(ISourceHook *shptr)
    1.12  		{
    1.13 -			T &ref = *reinterpret_cast<const ReferenceCarrier<T&>::type *>(shptr->GetOverrideRet());
    1.14 +			T &ref = *reinterpret_cast<const typename ReferenceCarrier<T&>::type *>(shptr->GetOverrideRet());
    1.15  			return &ref;
    1.16  		}
    1.17  	};
    1.18 @@ -5842,7 +5842,7 @@
    1.19  		void operator()(ISourceHook *shptr, T &res)
    1.20  		{
    1.21  			// overrideretptr points to ReferenceCarrier<T&>
    1.22 -			*reinterpret_cast<ReferenceCarrier<T&>::type *>(shptr->GetOverrideRetPtr()) = res;
    1.23 +			*reinterpret_cast<typename ReferenceCarrier<T&>::type *>(shptr->GetOverrideRetPtr()) = res;
    1.24  		}
    1.25  	};
    1.26