Re: [Boost-bugs] [Boost C++ Libraries] #10615: R-Tree: add constructor that converts any range<T> to the trees value type

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10615: R-Tree: add constructor that converts any range<T> to the trees value type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-06 13:35:33


#10615: R-Tree: add constructor that converts any range<T> to the trees value type
-------------------------------+---------------------------
  Reporter: anonymous | Owner: barendgehrels
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: geometry
   Version: Boost 1.56.0 | Severity: Optimization
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by anonymous):

 Thanks for your quick reply. That seems like the solution I've searched
 for (though in the wrong spot as I've looked in rtree when Boost.Range
 might do the trick) but a first test gives me compile errors about missing
 `type` and `reference` typedefs in `boost::transform_iterator`, a missing
 class template named `result` in what seems to be the lambda function
 `fun` in your example and again no matching function for call to
 `begin(const boost::range_detail::transformed_range)` and `end` with the
 same signature as begin.

 So I'll try to sort out my problems and/or condense my code into a small
 example to seek further advice. Anyway, you can close this ticket, since
 even if constructing an rtree from an adapted range would fail right now
 your suggested solution is far more elegant and can be done without
 writing new library code.

 As a sidenote - I might have overlooked it - but an example of rtree
 creation from an adapted range would probably help some narrow-minded
 users like me to realize that Boost.Range isn't just a few templates you
 need to specialize in order to get your stuff into Geometry.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10615#comment:2>
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:17 UTC