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@think-cell.com> 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@think-cell.com
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@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/geometry