Boost logo

Boost :

Subject: Re: [boost] [Geometry] Problem with assign
From: Barend Gehrels (barend_at_[hidden])
Date: 2011-07-11 14:36:05


Hi Hartmut,

On 11-7-2011 0:30, Hartmut Kaiser wrote:
> The following fails to compile:
>
> #include<boost/geometry.hpp>
> #include<boost/geometry/geometries/point_xy.hpp>
> #include<boost/geometry/geometries/polygon.hpp>
>
> int main()
> {
> typedef boost::geometry::model::d2::point_xy<int> int_point_type;
> typedef boost::geometry::model::polygon<int_point_type>
> int_polygon_type;
>
> typedef boost::geometry::model::d2::point_xy<double> double_point_type;
> typedef boost::geometry::model::polygon<double_point_type>
> double_polygon_type;
>
> int_polygon_type ip;
> double_polygon_type dp;
>
> boost::geometry::assign(dp, ip);
>
> return 0;
> }

Indeed it fails, also with the convert function (actually they fail at
the same point). Sorry about that. I will implement it, in Trunk, soon
(but I'm busy with some other requests as well so it might take a while).

Regards, Barend


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk