Re: [Boost-bugs] [Boost C++ Libraries] #13539: Boost Polygon - MSVC 2017 - Ambiguous call to size() function

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13539: Boost Polygon - MSVC 2017 - Ambiguous call to size() function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-04-25 10:57:36


#13539: Boost Polygon - MSVC 2017 - Ambiguous call to size() function
--------------------------------------------+------------------------------
  Reporter: Kai Benndorf <kai.benndorf@…> | Owner: Lucanus Simonson
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: polygon
   Version: Boost 1.67.0 | Severity: Regression
Resolution: | Keywords:
--------------------------------------------+------------------------------

Comment (by Kai Benndorf <kai.benndorf@…>):

 It was not possible to append a file, so the diff comes here:
 {{{
 Index: polygon_traits.hpp

 ===================================================================

 --- polygon_traits.hpp (revision 511)

 +++ polygon_traits.hpp (working copy)

 @@ -603,7 +603,7 @@

                         polygon_type>::type &
    convolve(polygon_type& polygon, const point_type& point) {
      std::vector<typename std::iterator_traits<typename
 polygon_traits<polygon_type>::iterator_type>::value_type> points;
 - points.reserve(size(polygon));
 + points.reserve(boost::polygon::size(polygon));
      for(typename polygon_traits<polygon_type>::iterator_type iter =
 begin_points(polygon);
          iter != end_points(polygon); ++iter) {
        points.push_back(*iter);
 @@ -689,7 +689,7 @@

    typename enable_if< typename
 is_any_mutable_polygon_without_holes_type<polygon_type>::type,
 polygon_type>::type &
    scale_up(polygon_type& polygon, typename coordinate_traits<typename
 polygon_traits<polygon_type>::coordinate_type>::unsigned_area_type factor)
 {
      std::vector<typename std::iterator_traits<typename
 polygon_traits<polygon_type>::iterator_type>::value_type> points;
 - points.reserve(size(polygon));
 + points.reserve(boost::polygon::size(polygon));
      for(typename polygon_traits<polygon_type>::iterator_type iter =
 begin_points(polygon);
          iter != end_points(polygon); ++iter) {
        points.push_back(*iter);
 @@ -728,7 +728,7 @@

      polygon_type>::type &
    scale_down(polygon_type& polygon, typename coordinate_traits<typename
 polygon_traits<polygon_type>::coordinate_type>::unsigned_area_type factor)
 {
      std::vector<typename std::iterator_traits<typename
 polygon_traits<polygon_type>::iterator_type>::value_type> points;
 - points.reserve(size(polygon));
 + points.reserve(boost::polygon::size(polygon));
      for(typename polygon_traits<polygon_type>::iterator_type iter =
 begin_points(polygon);
          iter != end_points(polygon); ++iter) {
        points.push_back(*iter);
 @@ -903,7 +903,7 @@

      polygon_type>::type &
    scale(polygon_type& polygon, double factor) {
      std::vector<typename std::iterator_traits<typename
 polygon_traits<polygon_type>::iterator_type>::value_type> points;
 - points.reserve(size(polygon));
 + points.reserve(boost::polygon::size(polygon));
      for(typename polygon_traits<polygon_type>::iterator_type iter =
 begin_points(polygon);
          iter != end_points(polygon); ++iter) {
        points.push_back(*iter);
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13539#comment:1>
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 : 2018-04-25 11:07:16 UTC