2012/10/10 niXman:
> 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

Ie the compiler knows that these are two different types. I guess this
is a assembler bug.



-- 
Regards,
niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows:
http://sourceforge.net/projects/mingwbuilds/

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to