Skip to content

Commit

Permalink
Remove a redundant operator
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Jul 1, 2020
1 parent 25b6cb9 commit 33f013b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bg_operators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,12 @@ bg::model::multi_polygon<polygon_type_t> operator+(const bg::model::multi_polygo
}

template multi_polygon_type_fp operator+(const multi_polygon_type_fp&, const multi_polygon_type_fp&);
template multi_polygon_type_fp operator+(const multi_polygon_type_fp&, const ring_type_fp&);

template <>
multi_polygon_type_fp operator+(const multi_polygon_type_fp& lhs, const ring_type_fp& rhs) {
multi_polygon_type_fp rhs_mp{polygon_type_fp{rhs}};
return lhs + rhs_mp;
}

// It's not great to insert definitions into the bg namespace but they
// are useful for sorting and maps.
Expand Down

0 comments on commit 33f013b

Please sign in to comment.