Boost logo

Geometry :

Subject: [geometry] dimension type of geometries
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2013-07-14 15:27:09


Hi,

I've noticed that traits::dimension<> specialized for point and point_xy
is derived from boost::mpl::int_<DimensionCount>. Because of this, value
member is of type int. Because of this, dimention<G>::value for all
other geometries using those Point types is also of type int. But BG
functions/structs/etc. takes std::size_t as dimension.

Shouldn't traits::dimension<> trait be derived from
boost::mpl::integral_c<std::size_t, DimensionCount> and define value of
type std::size_t?

Regards,
Adam


Geometry list run by mateusz at loskot.net