Boost logo

Boost :

From: Richard Damon (rdamon_at_[hidden])
Date: 2002-04-10 08:56:06

> -----Original Message-----
> From: boost-admin_at_[hidden] [mailto:boost-admin_at_[hidden]]On
> Behalf Of John Maddock
> Sent: Wednesday, April 10, 2002 6:53 AM
> To: boost_at_[hidden]
> Subject: Re: [boost] type traits and cdecl
> > Does anyone care if I add the extra underscore?
> Not at all, I thought it was a non-standard extension either which way
> though:

A conforming program is allowed to use _cdecl, and thus the compilers use of
that symbol makes the compiler non-conforming. No conforming program is
allowed to use a symbol with two consecutive underscores, thus an extension
can use a keyword with two consecutive underscores and the implementation
can remain conforming. The program which uses the extension no longer is
conforming, but that is expected when you use an extension.

> //
> // whenever we have a conversion function with elipses
> // it needs to be declared _cdecl to suppress compiler
> // warnings from MS and Borland compilers:
> #if defined(BOOST_MSVC) || defined(__BORLANDC__)
> #define BOOST_TT_DECL _cdecl
> #else
> #define BOOST_TT_DECL
> #endif
> John.

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