$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [Geometry] Problem with assign
From: Barend Gehrels (barend_at_[hidden])
Date: 2011-07-11 02:51:22
Hi Hartmut,
> 
> 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;
> }
> 
> Shouldn't it actually compile?
I will look tonight, but probably you have to use "convert" for this. 
Regards, Barend
Sent from iPad.
Barend Gehrels
www.barendgehrels.nl
>