Boost logo

Geometry :

Subject: [ggl] Custom geometries and GGL header inclusion
From: Mateusz Loskot (mateusz)
Date: 2010-03-12 23:32:00


Barend Gehrels wrote:
>> Then, I included some access, i/o headers from GGL, wrote a small
>> routine,
>> compiled the source(with msvc9), but ended up with dozens errors.
>> After including several GGL core headers suggested by error info:
>>
>> #include <boost/geometry/core/access.hpp>
>> #include <boost/geometry/core/coordinate_type.hpp>
>> #include <boost/geometry/core/coordinate_system.hpp>
>> #include <boost/geometry/core/coordinate_dimension.hpp>
>> #include <boost/geometry/core/exterior_ring.hpp>
>> #include <boost/geometry/core/interior_rings.hpp>
>> #include <boost/geometry/multi/core/tags.hpp>
>> #include <boost/geometry/core/point_order.hpp>
>
> Sure, these headers contain namespace traits, so to specialize traits
> classes you have to include these headers indeed. There is currently no
> standard "collection" headerfile to include these. The concept is spread
> over different files indeed (on purpose), and maybe we indeed can
> consider to make such a collecting headerfile for this to make this
> scenario more easy.
>
> Now that I looked again with this point of view, they are indeed missing
> in the register headerfiles and will be added.

So, for this particular case of register headers, if I want to use
register/point.hpp, I will not have to include any other headers
required by register/point.hpp itself. Is that how it should work?

Best regards,

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

Geometry list run by mateusz at loskot.net