coord: use almost_equal for equality

This commit is contained in:
Danny Robson 2015-07-21 01:39:14 +10:00
parent d11bdb79b0
commit 0db7872c1b

View File

@ -177,9 +177,12 @@ namespace util {
bool
operator== (K<S,T> a, K<S,T> b)
{
bool (*predicate)(const T&, const T&) = almost_equal;
return std::equal (std::begin (a),
std::end (a),
std::begin (b));
std::begin (b),
predicate);
}
///------------------------------------------------------------------------