|
Boost : |
From: John Maddock (jm_at_[hidden])
Date: 2002-08-19 06:35:12
> I don't recall the standard mentioning anything about calling conventions.
> Would you cite a section of the standard which mentions this in any way ?
I
> was under the impression that calling conventions were a subject which
> existed outside of the C++ standards. When using calling conventions with
> C++ Builder or VC++, one can use keyword extensions such as __cdecl and
> __stdcall etc., and I always thought, by its very nature, that double
> underscore extensions were implementation-defined keyword extensions to
the
> standard.
I should have explained that better - using either __stdcall or __fastcall
means that some standard mandated constructs will not compile:
void __stdcall foo(...); // error
That's why __cdecl is the default, and is used for all the standard library
code.
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk