Re: [Boost-bugs] [Boost C++ Libraries] #8362: Move ctor or assignment for boost::geometry::model::ring?

Subject: Re: [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-15 00:26:21


#8362: Move ctor or assignment for boost::geometry::model::ring?
------------------------------------------------------+---------------------
  Reporter: Volker Schöch <vschoech@…> | Owner: mloskot
      Type: Support Requests | Status: new
 Milestone: To Be Determined | Component: geometry
   Version: Boost 1.52.0 | Severity: Cosmetic
Resolution: | Keywords: convert, move, assign
------------------------------------------------------+---------------------

Comment (by mloskot):

 Barend,

 The requested move semantic is one issue, but unless I'm missing
 something, is the ring model supposed to be constructible directly from
 compatible container of compatible points?
 The extension constructor in ring takes iterators only, not container.

 Obviously, this does not compile:

 {{{
 #include <vector>
 #include <boost/geometry.hpp>
 #include <boost/geometry/geometries/ring.hpp>
 #include <boost/geometry/geometries/point_xy.hpp>

 int main()
 {
     typedef boost::geometry::model::d2::point_xy<double> point;
     typedef boost::geometry::model::ring<point> ring;


     std::vector<point> r1;
     ring r2;
     boost::geometry::convert(r1, r2);

     return 0;
 }
 }}}

 Shall I extend the ring to make it constructible from the container too?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8362#comment:3>
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