Boost logo

Geometry :

Subject: [ggl] Header inclusion guards
From: Mateusz Loskot (mateusz)
Date: 2009-04-15 19:19:39


Hi,

As it was discussed and agreed off-list, I've started refactoring
existing inclusion guards. I decided to follow MPL and other Boost
libraries and generate guards based on physical path to a file
instead of the logical one - namespaces.

So, here is the convention I'm applying:

GGL_<DIR1>_<DIRN>_<FILE>_HPP

Example, header

ggl/geometry/strategies/distance_result.hpp

is gaurded with:

GGL_GEOMETRY_STRATEGIES_DISTANCE_RESULT_HPP

I don't append _INCLUDED suffix, because such guards are long
enough to consider them as (pseudo-)unique.

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

Geometry list run by mateusz at loskot.net