summaryrefslogtreecommitdiff
path: root/boost/geometry/index/equal_to.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/index/equal_to.hpp')
-rw-r--r--boost/geometry/index/equal_to.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/boost/geometry/index/equal_to.hpp b/boost/geometry/index/equal_to.hpp
index 5fbaa82..b0cf098 100644
--- a/boost/geometry/index/equal_to.hpp
+++ b/boost/geometry/index/equal_to.hpp
@@ -24,6 +24,15 @@ struct equals
}
};
+template <typename Geometry, typename Tag>
+struct equals<Geometry *, Tag>
+{
+ inline static bool apply(const Geometry * g1, const Geometry * g2)
+ {
+ return g1 == g2;
+ }
+};
+
template <typename T>
struct equals<T, void>
{