[cfe-dev] clang for Windows problem in Boost.TypeTraits

David Majnemer david.majnemer at gmail.com
Thu Oct 3 15:45:33 PDT 2013


For the record, Microsoft documents this behavior.

__vectorcall, __thiscall,__stdcall all degrade to __cdecl. See:
http://msdn.microsoft.com/en-us/library/zxk0tw93(v=vs.120).aspx
http://msdn.microsoft.com/en-us/library/ek8tkfbw(v=vs.120).aspx
http://msdn.microsoft.com/en-us/library/dn375768(v=vs.120).aspx

On Thu, Oct 3, 2013 at 4:06 AM, Paweł Bylica <chfast at gmail.com> wrote:

> On Mon, Sep 30, 2013 at 5:29 AM, Edward Diener <
> eldlistmailingz at tropicsoft.com> wrote:
>
>> In Boost.TypeTraits this header file line:
>>
>>  template <class R >
>>  yes_type is_function_ptr_tester(R (__fastcall*)( ...));
>>
>> gets an error message from clang in Windows of:
>>
>> ..\..\..\boost/type_traits/**detail/is_function_ptr_tester.**hpp:52:36:
>> error: variadic function cannot use fastcall calling convention
>>
>
> Wait a minute, this header is included only if
> BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION macro is defined. It is probably
> some old lack of template specialization workaround. It does not compile in
> VS either.
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131003/12f353d6/attachment.html>


More information about the cfe-dev mailing list