Boost logo

Geometry :

Subject: [geometry] Move ctor or assignment for boost::geometry::model::ring?
From: Volker Schöch (vschoech_at_[hidden])
Date: 2013-03-28 13:05:20


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]<mailto: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 list run by mateusz at loskot.net