Boost logo

Geometry :

Subject: [ggl] abs warning on Linux
From: Barend Gehrels (barend)
Date: 2011-09-15 00:14:50


Hi,

> Just wondering if you guys are aware of the following warning with
> floating-point coordinates on Linux:
>
> /boost-1.47.0/include/boost/geometry/strategies/cartesian/cart_intersect.hpp:350:
> warning: passing 'double' for argument 1 to 'int abs(int)'/
> /boost-1.47.0/include/boost/geometry/strategies/cartesian/cart_intersect.hpp:351:
> warning: passing 'double' for argument 1 to 'int abs(int)'/
>
> This happens when running boost::geometry::intersection(my_polygon,
> my_box) where coordinate_type of points is double, the compiler
> doesn't like it since only /int abs(int)/ seems to be available on
> that Linux distro O_o
>

Thanks for the message!

This was not only a warning, it was indeed an error. It was already
solved in the Trunk, indeed using geometry::math::abs

Regards, Barend

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ggl/attachments/20110914/d4c81877/attachment.html


Geometry list run by mateusz at loskot.net