diff --git a/include/boost/polygon/detail/boolean_op.hpp b/include/boost/polygon/detail/boolean_op.hpp
index d3e3614..70ca4a9 100644
a
|
b
|
namespace boolean_op {
|
381 | 381 | } |
382 | 382 | |
383 | 383 | template <typename Unit> |
384 | | inline void applyUnaryXOr(std::vector<std::pair<Unit, std::pair<Unit, int> > >& input) { |
| 384 | inline void applyUnaryXOr(std::vector<std::pair<Unit, std::pair<Unit, int> > >& ) { |
385 | 385 | BooleanOp<UnaryCount, Unit> booleanXOr; |
386 | 386 | |
387 | 387 | } |
diff --git a/include/boost/polygon/detail/boolean_op_45.hpp b/include/boost/polygon/detail/boolean_op_45.hpp
index b2130ce..9930072 100644
a
|
b
|
namespace boost { namespace polygon{
|
272 | 272 | inline Vertex45T(const Vertex45T& vertex) : pt(vertex.pt), rise(vertex.rise), count(vertex.count) {} |
273 | 273 | inline Vertex45T& operator=(const Vertex45T& vertex){ |
274 | 274 | pt = vertex.pt; rise = vertex.rise; count = vertex.count; return *this; } |
275 | | inline Vertex45T(const std::pair<Point, Point>& vertex) : pt(), rise(), count() {} |
276 | | inline Vertex45T& operator=(const std::pair<Point, Point>& vertex){ return *this; } |
| 275 | inline Vertex45T(const std::pair<Point, Point>& ) : pt(), rise(), count() {} |
| 276 | inline Vertex45T& operator=(const std::pair<Point, Point>& ){ return *this; } |
277 | 277 | inline bool operator==(const Vertex45T& vertex) const { |
278 | 278 | return pt == vertex.pt && rise == vertex.rise && count == vertex.count; } |
279 | 279 | inline bool operator!=(const Vertex45T& vertex) const { return !((*this) == vertex); } |
280 | | inline bool operator==(const std::pair<Point, Point>& vertex) const { return false; } |
| 280 | inline bool operator==(const std::pair<Point, Point>& ) const { return false; } |
281 | 281 | inline bool operator!=(const std::pair<Point, Point>& vertex) const { return !((*this) == vertex); } |
282 | 282 | inline bool operator<(const Vertex45T& vertex) const { |
283 | 283 | if(pt.x() < vertex.pt.x()) return true; |
diff --git a/include/boost/polygon/detail/polygon_45_formation.hpp b/include/boost/polygon/detail/polygon_45_formation.hpp
index 2e16570..030aecc 100644
a
|
b
|
namespace boost { namespace polygon{
|
506 | 506 | inline bool operator==(const Vertex45CompactT& vertex) const { |
507 | 507 | return pt == vertex.pt && count == vertex.count; } |
508 | 508 | inline bool operator!=(const Vertex45CompactT& vertex) const { return !((*this) == vertex); } |
509 | | inline bool operator==(const std::pair<Point, Point>& vertex) const { return false; } |
| 509 | inline bool operator==(const std::pair<Point, Point>& ) const { return false; } |
510 | 510 | inline bool operator!=(const std::pair<Point, Point>& vertex) const { return !((*this) == vertex); } |
511 | 511 | inline bool operator<(const Vertex45CompactT& vertex) const { |
512 | 512 | if(pt.x() < vertex.pt.x()) return true; |
… |
… |
namespace boost { namespace polygon{
|
2153 | 2153 | inline iterator end() const { return p_->getTail()->end(); } |
2154 | 2154 | inline std::size_t size() const { return 0; } |
2155 | 2155 | template<class iT> |
2156 | | inline PolyLine45HoleData& set(iT inputBegin, iT inputEnd) { |
| 2156 | inline PolyLine45HoleData& set(iT , iT ) { |
2157 | 2157 | return *this; |
2158 | 2158 | } |
2159 | 2159 | private: |
… |
… |
namespace boost { namespace polygon{
|
2222 | 2222 | inline std::size_t size_holes() const { return 0; } |
2223 | 2223 | inline std::size_t size() const { return 0; } |
2224 | 2224 | template<class iT> |
2225 | | inline PolyLine45PolygonData& set(iT inputBegin, iT inputEnd) { |
| 2225 | inline PolyLine45PolygonData& set(iT , iT ) { |
2226 | 2226 | return *this; |
2227 | 2227 | } |
2228 | 2228 | |
2229 | 2229 | // initialize a polygon from x,y values, it is assumed that the first is an x |
2230 | 2230 | // and that the input is a well behaved polygon |
2231 | 2231 | template<class iT> |
2232 | | inline PolyLine45PolygonData& set_holes(iT inputBegin, iT inputEnd) { |
| 2232 | inline PolyLine45PolygonData& set_holes(iT , iT ) { |
2233 | 2233 | return *this; |
2234 | 2234 | } |
2235 | 2235 | private: |
diff --git a/include/boost/polygon/detail/polygon_90_set_view.hpp b/include/boost/polygon/detail/polygon_90_set_view.hpp
index f6ee36c..c2502d3 100644
a
|
b
|
namespace boost { namespace polygon{
|
200 | 200 | return polygon_set.orient(); } |
201 | 201 | template <typename ltype, typename rtype, typename op_type> |
202 | 202 | bool polygon_90_set_traits<polygon_90_set_view<ltype, rtype, op_type> >:: |
203 | | clean(const polygon_90_set_view<ltype, rtype, op_type>& polygon_set) { |
| 203 | clean(const polygon_90_set_view<ltype, rtype, op_type>& ) { |
204 | 204 | return true; } |
205 | 205 | template <typename ltype, typename rtype, typename op_type> |
206 | 206 | bool polygon_90_set_traits<polygon_90_set_view<ltype, rtype, op_type> >:: |
207 | | sorted(const polygon_90_set_view<ltype, rtype, op_type>& polygon_set) { |
| 207 | sorted(const polygon_90_set_view<ltype, rtype, op_type>& ) { |
208 | 208 | return true; } |
209 | 209 | |
210 | 210 | template <typename value_type, typename arg_type> |
diff --git a/include/boost/polygon/detail/polygon_arbitrary_formation.hpp b/include/boost/polygon/detail/polygon_arbitrary_formation.hpp
index 6f9eb73..2b62c6b 100644
a
|
b
|
namespace boost { namespace polygon{
|
338 | 338 | }; |
339 | 339 | |
340 | 340 | template <typename unsigned_product_type> |
341 | | static inline void unsigned_mod(unsigned_product_type& result, int& result_sign, unsigned_product_type a, int a_sign, unsigned_product_type b, int b_sign) { |
| 341 | static inline void unsigned_mod(unsigned_product_type& result, int& result_sign, unsigned_product_type a, int a_sign, unsigned_product_type b, int ) { |
342 | 342 | result = a % b; |
343 | 343 | result_sign = a_sign; |
344 | 344 | } |
… |
… |
namespace boost { namespace polygon{
|
739 | 739 | inline vertex_half_edge(const vertex_half_edge& vertex) : pt(vertex.pt), other_pt(vertex.other_pt), count(vertex.count) {} |
740 | 740 | inline vertex_half_edge& operator=(const vertex_half_edge& vertex){ |
741 | 741 | pt = vertex.pt; other_pt = vertex.other_pt; count = vertex.count; return *this; } |
742 | | inline vertex_half_edge(const std::pair<Point, Point>& vertex) : pt(), other_pt(), count() {} |
743 | | inline vertex_half_edge& operator=(const std::pair<Point, Point>& vertex){ return *this; } |
| 742 | inline vertex_half_edge(const std::pair<Point, Point>& ) : pt(), other_pt(), count() {} |
| 743 | inline vertex_half_edge& operator=(const std::pair<Point, Point>& ){ return *this; } |
744 | 744 | inline bool operator==(const vertex_half_edge& vertex) const { |
745 | 745 | return pt == vertex.pt && other_pt == vertex.other_pt && count == vertex.count; } |
746 | 746 | inline bool operator!=(const vertex_half_edge& vertex) const { return !((*this) == vertex); } |
747 | | inline bool operator==(const std::pair<Point, Point>& vertex) const { return false; } |
| 747 | inline bool operator==(const std::pair<Point, Point>& ) const { return false; } |
748 | 748 | inline bool operator!=(const std::pair<Point, Point>& vertex) const { return !((*this) == vertex); } |
749 | 749 | inline bool operator<(const vertex_half_edge& vertex) const { |
750 | 750 | if(pt.get(HORIZONTAL) < vertex.pt.get(HORIZONTAL)) return true; |
… |
… |
namespace boost { namespace polygon{
|
1284 | 1284 | inline vertex_arbitrary_compact& operator=(const vertex_arbitrary_compact& vertex){ |
1285 | 1285 | pt = vertex.pt; count = vertex.count; return *this; } |
1286 | 1286 | //inline vertex_arbitrary_compact(const std::pair<Point, Point>& vertex) {} |
1287 | | inline vertex_arbitrary_compact& operator=(const std::pair<Point, Point>& vertex){ return *this; } |
| 1287 | inline vertex_arbitrary_compact& operator=(const std::pair<Point, Point>& ){ return *this; } |
1288 | 1288 | inline bool operator==(const vertex_arbitrary_compact& vertex) const { |
1289 | 1289 | return pt == vertex.pt && count == vertex.count; } |
1290 | 1290 | inline bool operator!=(const vertex_arbitrary_compact& vertex) const { return !((*this) == vertex); } |
1291 | | inline bool operator==(const std::pair<Point, Point>& vertex) const { return false; } |
| 1291 | inline bool operator==(const std::pair<Point, Point>& ) const { return false; } |
1292 | 1292 | inline bool operator!=(const std::pair<Point, Point>& vertex) const { return !((*this) == vertex); } |
1293 | 1293 | inline bool operator<(const vertex_arbitrary_compact& vertex) const { |
1294 | 1294 | if(pt.get(HORIZONTAL) < vertex.pt.get(HORIZONTAL)) return true; |
… |
… |
namespace boost { namespace polygon{
|
2144 | 2144 | //inline compact_iterator_type end_compact() const { return compact_iterator_type(end()); } |
2145 | 2145 | inline std::size_t size() const { return 0; } |
2146 | 2146 | template<class iT> |
2147 | | inline poly_line_arbitrary_hole_data& set(iT inputBegin, iT inputEnd) { |
| 2147 | inline poly_line_arbitrary_hole_data& set(iT , iT ) { |
2148 | 2148 | //assert this is not called |
2149 | 2149 | return *this; |
2150 | 2150 | } |
2151 | 2151 | template<class iT> |
2152 | | inline poly_line_arbitrary_hole_data& set_compact(iT inputBegin, iT inputEnd) { |
| 2152 | inline poly_line_arbitrary_hole_data& set_compact(iT , iT ) { |
2153 | 2153 | //assert this is not called |
2154 | 2154 | return *this; |
2155 | 2155 | } |
… |
… |
namespace boost { namespace polygon{
|
2220 | 2220 | inline std::size_t size_holes() const { return 0; } |
2221 | 2221 | inline std::size_t size() const { return 0; } |
2222 | 2222 | template<class iT> |
2223 | | inline poly_line_arbitrary_polygon_data& set(iT inputBegin, iT inputEnd) { |
| 2223 | inline poly_line_arbitrary_polygon_data& set(iT , iT ) { |
2224 | 2224 | return *this; |
2225 | 2225 | } |
2226 | 2226 | template<class iT> |
2227 | | inline poly_line_arbitrary_polygon_data& set_compact(iT inputBegin, iT inputEnd) { |
| 2227 | inline poly_line_arbitrary_polygon_data& set_compact(iT , iT ) { |
2228 | 2228 | return *this; |
2229 | 2229 | } |
2230 | 2230 | template<class iT> |
2231 | | inline poly_line_arbitrary_polygon_data& set_holes(iT inputBegin, iT inputEnd) { |
| 2231 | inline poly_line_arbitrary_polygon_data& set_holes(iT , iT ) { |
2232 | 2232 | return *this; |
2233 | 2233 | } |
2234 | 2234 | }; |
diff --git a/include/boost/polygon/detail/polygon_formation.hpp b/include/boost/polygon/detail/polygon_formation.hpp
index be2f543..7342fef 100644
a
|
b
|
namespace polygon_formation {
|
617 | 617 | } |
618 | 618 | inline ActiveTail<Unit>* yield() { return p_; } |
619 | 619 | template<class iT> |
620 | | inline PolyLineHoleData& set(iT inputBegin, iT inputEnd) { |
| 620 | inline PolyLineHoleData& set(iT , iT ) { |
621 | 621 | return *this; |
622 | 622 | } |
623 | 623 | template<class iT> |
624 | | inline PolyLineHoleData& set_compact(iT inputBegin, iT inputEnd) { |
| 624 | inline PolyLineHoleData& set_compact(iT , iT ) { |
625 | 625 | return *this; |
626 | 626 | } |
627 | 627 | |
… |
… |
namespace polygon_formation {
|
677 | 677 | inline std::size_t size_holes() const { return 0; } |
678 | 678 | inline std::size_t size() const { return 0; } |
679 | 679 | template<class iT> |
680 | | inline PolyLinePolygonWithHolesData& set(iT inputBegin, iT inputEnd) { |
| 680 | inline PolyLinePolygonWithHolesData& set(iT , iT ) { |
681 | 681 | return *this; |
682 | 682 | } |
683 | 683 | template<class iT> |
684 | | inline PolyLinePolygonWithHolesData& set_compact(iT inputBegin, iT inputEnd) { |
| 684 | inline PolyLinePolygonWithHolesData& set_compact(iT , iT ) { |
685 | 685 | return *this; |
686 | 686 | } |
687 | 687 | |
688 | 688 | // initialize a polygon from x,y values, it is assumed that the first is an x |
689 | 689 | // and that the input is a well behaved polygon |
690 | 690 | template<class iT> |
691 | | inline PolyLinePolygonWithHolesData& set_holes(iT inputBegin, iT inputEnd) { |
| 691 | inline PolyLinePolygonWithHolesData& set_holes(iT , iT ) { |
692 | 692 | return *this; |
693 | 693 | } |
694 | 694 | }; |
diff --git a/include/boost/polygon/detail/property_merge.hpp b/include/boost/polygon/detail/property_merge.hpp
index b0c843b..3f4dc17 100644
a
|
b
|
private:
|
509 | 509 | } |
510 | 510 | |
511 | 511 | template <typename T, typename T2> |
512 | | inline void writeGraph(coordinate_type x, T& graph, edge_property_vector& output, T2& scanline) { |
| 512 | inline void writeGraph(coordinate_type , T& graph, edge_property_vector& output, T2& scanline) { |
513 | 513 | if(output.empty()) return; |
514 | 514 | edge_property* previousEdgeP = &(output[0]); |
515 | 515 | bool firstIteration = true; |
diff --git a/include/boost/polygon/detail/scan_arbitrary.hpp b/include/boost/polygon/detail/scan_arbitrary.hpp
index cee2331..8b06724 100644
a
|
b
|
namespace boost { namespace polygon{
|
1641 | 1641 | |
1642 | 1642 | template <typename polygon_with_holes_type> |
1643 | 1643 | void insert(const polygon_with_holes_type& polygon_with_holes_object, const property_type& property_value, bool is_hole, |
1644 | | polygon_with_holes_concept tag) { |
| 1644 | polygon_with_holes_concept ) { |
1645 | 1645 | insert(polygon_with_holes_object, property_value, is_hole, polygon_concept()); |
1646 | 1646 | for(typename polygon_with_holes_traits<polygon_with_holes_type>::iterator_holes_type itr = |
1647 | 1647 | begin_holes(polygon_with_holes_object); |
diff --git a/include/boost/polygon/polygon_90_set_data.hpp b/include/boost/polygon/polygon_90_set_data.hpp
index 305aa3e..e0a1f9b 100644
a
|
b
|
namespace boost { namespace polygon{
|
46 | 46 | |
47 | 47 | // constructor from an iterator pair over vertex data |
48 | 48 | template <typename iT> |
49 | | inline polygon_90_set_data(orientation_2d orient, iT input_begin, iT input_end) : |
| 49 | inline polygon_90_set_data(orientation_2d , iT input_begin, iT input_end) : |
50 | 50 | orient_(HORIZONTAL), data_(), dirty_(false), unsorted_(false) { |
51 | 51 | dirty_ = true; |
52 | 52 | unsorted_ = true; |
… |
… |
namespace boost { namespace polygon{
|
119 | 119 | } |
120 | 120 | |
121 | 121 | inline void insert(const std::pair<std::pair<point_data<coordinate_type>, point_data<coordinate_type> >, int>& edge, bool is_hole = false, |
122 | | orientation_2d orient = HORIZONTAL) { |
| 122 | orientation_2d = HORIZONTAL) { |
123 | 123 | std::pair<coordinate_type, std::pair<coordinate_type, int> > vertex; |
124 | 124 | vertex.first = edge.first.first.x(); |
125 | 125 | vertex.second.first = edge.first.first.y(); |
diff --git a/include/boost/polygon/polygon_set_data.hpp b/include/boost/polygon/polygon_set_data.hpp
index 9c6420d..dc05736 100644
a
|
b
|
namespace boost { namespace polygon {
|
399 | 399 | } |
400 | 400 | |
401 | 401 | template <typename scaling_type> |
402 | | inline polygon_set_data& scale(polygon_set_data& polygon_set, |
| 402 | inline polygon_set_data& scale(polygon_set_data& , |
403 | 403 | const scaling_type& scaling) { |
404 | 404 | for(typename value_type::iterator itr = begin(); itr != end(); ++itr) { |
405 | 405 | bool vb = (*itr).first.first.x() == (*itr).first.second.x(); |
… |
… |
namespace boost { namespace polygon {
|
574 | 574 | template <typename geometry_type> |
575 | 575 | inline polygon_set_data& |
576 | 576 | insert_with_resize_dispatch(const geometry_type& poly, coordinate_type resizing, bool corner_fill_arc, unsigned int num_circle_segments, bool hole, |
577 | | polygon_with_holes_concept tag) { |
| 577 | polygon_with_holes_concept ) { |
578 | 578 | insert_with_resize_dispatch(poly, resizing, corner_fill_arc, num_circle_segments, hole, polygon_concept()); |
579 | 579 | for(typename polygon_with_holes_traits<geometry_type>::iterator_holes_type itr = |
580 | 580 | begin_holes(poly); itr != end_holes(poly); |
… |
… |
namespace boost { namespace polygon {
|
587 | 587 | template <typename geometry_type> |
588 | 588 | inline polygon_set_data& |
589 | 589 | insert_with_resize_dispatch(const geometry_type& poly, coordinate_type resizing, bool corner_fill_arc, unsigned int num_circle_segments, bool hole, |
590 | | polygon_concept tag) { |
| 590 | polygon_concept ) { |
591 | 591 | |
592 | 592 | if (resizing==0) |
593 | 593 | return *this; |
diff --git a/include/boost/polygon/polygon_traits.hpp b/include/boost/polygon/polygon_traits.hpp
index dddbf34..20835ef 100644
a
|
b
|
namespace boost { namespace polygon{
|
185 | 185 | template <typename iT> |
186 | 186 | static inline T& set_compact(T& t, iT input_begin, iT input_end) { |
187 | 187 | typedef iterator_points_to_compact<iT, typename polygon_traits<T>::point_type> iTp; |
188 | | t.set_points(iTp(polygon_traits<T>::begin_points(t)), iTp(polygon_traits<T>::end_points(t))); |
| 188 | t.set_points(iTp(input_begin), iTp(input_end)); |
189 | 189 | return t; |
190 | 190 | } |
191 | 191 | }; |
… |
… |
namespace boost { namespace polygon{
|
1567 | 1567 | typedef const hole_type* iterator_holes_type; |
1568 | 1568 | static inline iterator_holes_type begin_holes(const hole_type& t) { return &t; } |
1569 | 1569 | static inline iterator_holes_type end_holes(const hole_type& t) { return &t; } |
1570 | | static inline std::size_t size_holes(const hole_type& t) { return 0; } |
| 1570 | static inline std::size_t size_holes(const hole_type& ) { return 0; } |
1571 | 1571 | }; |
1572 | 1572 | |
1573 | 1573 | template <typename T> |