Boost logo

Boost :

From: bob_at_[hidden]
Date: 2002-08-27 15:24:28


Eric Woodruff wrote:

> It is better to remove the duality of the comment at the end, by
> switching to this paradigm:

> #ifndef HEADER_NAME_H__

> // code here...

> #define HEADER_NAME_H__
> #endif

In adddition to the recursive include problem already mentioned, this might cause trouble with the include guard optimisation. I don't know whether compilers that implement the include guard optimisation will handle this form of the idiom. For more information see:

http://bobarcher.org/software/include/index.html

Bob

----------------------------------------------------------
-- Bob Archer bob_at_[hidden]


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