Subject: [ggl] Convention of headers inclusion
From: Mateusz Loskot (mateusz)
Date: 2009-04-14 17:13:48
Bruno Lalande wrote:
>>> So I would propose the order is:
>>> 1) boost headers
>>> 2) geometry headers (because ggl might once belong to boost)
>>> within geometry:
>>> a) core
>>> b) strategies
>>> c) algorithms
>>> 3) std headers
> I agree except for the std headers, which I usually place in first.
> This avoids to have any other header influencing them in any way, such
> as macro definition, use of reserved names, or anything else.
This is a good point, indeed.
> So I usually use this order:
> standard C headers
> std headers
> boost headers
> 3rdparty libraries headers
> my headers (here: GGL headers)
> But as Barend said, GGL headers are meant to belong to Boost one day,
> so they could be placed just after Boost headers...
Sure, works for me. Can we accept it as convention used in GGL?
-- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org
Geometry list run by mateusz at loskot.net