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.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/boost/geometry/index/equal_to.hpp b/boost/geometry/index/equal_to.hpp
index b0cf098f1d..6b722a89fc 100644
--- a/boost/geometry/index/equal_to.hpp
+++ b/boost/geometry/index/equal_to.hpp
@@ -1,6 +1,6 @@
// Boost.Geometry Index
//
-// Copyright (c) 2011-2014 Adam Wulkiewicz, Lodz, Poland.
+// Copyright (c) 2011-2016 Adam Wulkiewicz, Lodz, Poland.
//
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
@@ -42,6 +42,15 @@ struct equals<T, void>
}
};
+template <typename T>
+struct equals<T *, void>
+{
+ inline static bool apply(const T * v1, const T * v2)
+ {
+ return v1 == v2;
+ }
+};
+
template <typename Tuple, size_t I, size_t N>
struct tuple_equals
{