Subject: [Boost-bugs] [Boost C++ Libraries] #8362: Move ctor or assignment for boost::geometry::model::ring?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-02 08:00:41
#8362: Move ctor or assignment for boost::geometry::model::ring?
-----------------------------------------------------+----------------------
Reporter: Volker Schöch <vschoech@â¦> | Owner: barendgehrels
Type: Support Requests | Status: new
Milestone: To Be Determined | Component: geometry
Version: Boost 1.52.0 | Severity: Cosmetic
Keywords: convert, move, assign |
-----------------------------------------------------+----------------------
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
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8362> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC