Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2003-10-24 08:08:51

David Abrahams wrote:
> Daniel Frey <daniel.frey_at_[hidden]> writes:
>>Given that it works for all situations where needed
> It doesn't. Some compilers warn :(

OK, that makes the idea useless.

>>, I see two (small) advantages:
>>1) Less overhead for the compiler, although it's probably already
>> small enough compared to some other boost libraries
> Is the macro expansion less expensive than just reading (void)x?

I think so, since the preprocessor doesn't add to the function lookup
table, template instantiations (checking for doubles), code generation
in case someone would take the address of unused_variable, etc. that are
needed during the later translation steps. But granted, the difference
is likely very small. The second argument was also more important to me,
  as IMHO an all-caps-name communicates the function's intention better.
Anyway, it was just an idea and it's dead now... :)

Regards, Daniel

Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web:

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