Ticket #9386: 9386.diff

File 9386.diff, 1.6 KB (added by Andrii Sydorchuk, 9 years ago)
  • polygon_traits.hpp

     
    14201420
    14211421  template <typename T1, typename T2>
    14221422  typename enable_if<
    1423     typename gtl_and< typename is_mutable_point_concept<typename geometry_concept<T1>::type>::type,
    1424                       typename is_polygon_with_holes_type<T2>::type>::type,
    1425     bool>::type
    1426   center(T1& center_point, const T2& polygon) {
    1427     typedef typename polygon_traits<T2>::coordinate_type coordinate_type;
    1428     rectangle_data<coordinate_type> bbox;
    1429     extents(bbox, polygon);
    1430     return center(center_point, bbox);
    1431   }
    1432 
    1433   template <typename T1, typename T2>
    1434   typename enable_if<
    14351423    typename gtl_and< typename is_mutable_rectangle_concept<typename geometry_concept<T1>::type>::type,
    14361424                      typename is_polygon_with_holes_type<T2>::type>::type,
    14371425    bool>::type
     
    14511439    return true;
    14521440  }
    14531441
     1442  template <typename T1, typename T2>
     1443  typename enable_if<
     1444    typename gtl_and< typename is_mutable_point_concept<typename geometry_concept<T1>::type>::type,
     1445                      typename is_polygon_with_holes_type<T2>::type>::type,
     1446    bool>::type
     1447  center(T1& center_point, const T2& polygon) {
     1448    typedef typename polygon_traits<T2>::coordinate_type coordinate_type;
     1449    rectangle_data<coordinate_type> bbox;
     1450    extents(bbox, polygon);
     1451    return center(center_point, bbox);
     1452  }
     1453
    14541454  template <class T>
    14551455  template <class T2>
    14561456  polygon_90_data<T>& polygon_90_data<T>::operator=(const T2& rvalue) {