Boost logo

Boost :

Subject: Re: [boost] [type_traits] Variadic function pointer with __fastcall calling convention
From: Edward Diener (eldiener_at_[hidden])
Date: 2013-10-09 11:24:46

On 10/8/2013 3:59 AM, Marc Glisse wrote:
> On Mon, 7 Oct 2013, Stephan T. Lavavej wrote:
>>> I believe that clang wants to be compatible enough to VC++ on Windows to
>>> be able to compile Windows header files, but still wants to follow the
>>> C++ standard as closely as possible.
>> Well, calling conventions are non-Standard.
> extern "C" is, among other things, a calling convention, so treating
> other calling conventions the same way could arguably be called "the
> standard way". Now there are several defects about the handling of
> extern "C", so it may not be that helpful...

There is no mention of calling conventions in the C++ standard so
specifying extern "C" as one seems a bit of a stretch. Anyway the header
files in type_traits/detail which had vararg arguments and VC++ calling
conventions do not have to worry about this AFAICS.

Boost list run by bdawes at, gregod at, cpdaniel at, john at