Boost logo

Boost :

From: Edward Diener (eldiener_at_[hidden])
Date: 2007-12-14 20:02:20


Jens Seidel wrote:
> On Fri, Dec 14, 2007 at 04:28:58PM -0000, John Maddock wrote:
>> Jens Seidel wrote:
> I just want to mention that
> #include <boost/math/complex/details.hpp>
> is easier to read than
> #ifndef BOOST_MATH_COMPLEX_DETAILS_INCLUDED
> # include <boost/math/complex/details.hpp>
> #endif
>
> It is also more secure because you increase the chance to make a typo in
> the macro which could be hard to track down.
> You're right that it could be a little bit faster but I have never seen
> it somewhere (including Boost).

Both Borland and Microsoft have used the idiom above, so maybe you have
never seen it because you never used either of those compilers or looked
at some of the source or header files they distribute with their C++
compiler implementations.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk