Boost logo

Geometry :

Subject: Re: [geometry] Move ctor or assignment for boost::geometry::model::ring?
From: Bruno Lalande (bruno.lalande_at_[hidden])
Date: 2013-04-09 17:17:43


Hi Volker,

This entirely depends on what "this" is, i.e. whether the class you are
writing was correctly registered in Boost.Geometry as a geometry type to
which a ring can be converted (ring, polygon...). Have you checked that?

Bruno

On Thu, Mar 28, 2013 at 5:05 PM, Volker Schöch <vschoech_at_[hidden]>wrote:

> Hi,****
>
> I have this clumsy piece of code:****
>
> ** **
>
> if( !vecpt.empty() ) {****
>
> emplace_back( polygon_type() );****
>
> static_cast< std::vector< _TPoint< T > >& >( back().outer() ) =
> std::move(vecpt);****
>
> }****
>
> ** **
>
> which actually should be written like this:****
>
> ** **
>
> boost::geometry::convert( polygon_type::ring_type( std::move(vecpt) ), *
> this );****
>
> ** **
>
> but unfortunately this kind of conversion does not work. Did I make a
> mistake in my above statement, or is this not (yet) supported? If the
> latter, do you plan on adding support for this at some point?****
>
> Thanks!****
>
> Volker****
>
> --
> Volker Schöch | vschoech_at_[hidden]
> Senior Software Engineer
>
> ------------------------------
> think-cell Software GmbH http://www.think-cell.com Chausseestr. 8/E phone
> / fax +49 30 666473-10 / -19 10115 Berlin, Germany US phone / fax +1 800
> 891 8091 / +1 212 504 3039 Amtsgericht Berlin-Charlottenburg, HRB 85229
> | European Union VAT Id DE813474306 Directors: Dr. Markus Hannebauer,
> Dr. Arno Schödl
>
> _______________________________________________
> Geometry mailing list
> Geometry_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/geometry
>
>



Geometry list run by mateusz at loskot.net