From: niXman <i.n...@gm...> - 2012-10-10 18:44:20
|
For example, this code work as expected: template<typename T, typename U> struct is_same { enum { value = 0 }; }; template<typename T> struct is_same<T, T> { enum { value = 1 }; }; int main() { typedef void(__stdcall* stdcall_func_ptr)(); typedef void(__cdecl* cdecl_func_ptr)(); return is_same<stdcall_func_ptr, cdecl_func_ptr>::value; } main returns 0 -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/ |