Boost logo

Geometry :

Subject: [ggl] Convention of headers inclusion
From: Barend Gehrels (barend.gehrels)
Date: 2009-04-13 16:53:53


Mateusz Loskot wrote:
> Example of potential problems caused by implicit inclusion is in
> file test/circle.cpp which includes:
>
> #include <geometry/geometries/nsphere.hpp>
> #include <geometry/core/concepts/nsphere_concept.hpp>
>
> Reordering these two to include the concept first:
>
> #include <geometry/core/concepts/nsphere_concept.hpp>
> #include <geometry/geometries/nsphere.hpp>
>
> gives compilation error:
>
> [snipped]
>
>
> AFAIU, actual fix for this is to add following line to header
> <geometry/core/concepts/nsphere_concept.hpp>:
>
> #include <geometry/core/coordinate_dimension.hpp>
>
> Then, inclusion of only nsphere_concept.hpp header will work.
>
>
Right, this is how it should be, thanks.
Barend


Geometry list run by mateusz at loskot.net