From 33f013b15988118e9a01c6bb4b6ec2d7cd408d0e Mon Sep 17 00:00:00 2001 From: eyal0 <109809+eyal0@users.noreply.github.com> Date: Tue, 30 Jun 2020 11:44:51 -0600 Subject: [PATCH] Remove a redundant operator --- bg_operators.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bg_operators.cpp b/bg_operators.cpp index be90af1b3..64a4527d2 100644 --- a/bg_operators.cpp +++ b/bg_operators.cpp @@ -165,7 +165,12 @@ bg::model::multi_polygon 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.