|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-07-04 06:38:56
From: "David Abrahams" <david.abrahams_at_[hidden]>
> That's the idea, but it's just so that if you write two headers on the
same
> day they get different #include guards. Others propose putting the path to
> the header in the include guard, which, when combined with mangling:
>
> BOOST_PYTHON_DETAIL_EXTENSION_CLASS_DWA07022001_H_
>
> has no significant advantages over the simpler mangled name:
>
> EXTENSION_CLASS_DWA07022001_H_
FWIW, I use
SUBDIR_HEADER_HPP_INCLUDED
for
<subdir/header.hpp>
which works fine for me _and_ makes the guard name predictable (useful for
external guards.)
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk