coord: use almost_equal for equality
This commit is contained in:
parent
d11bdb79b0
commit
0db7872c1b
@ -177,9 +177,12 @@ namespace util {
|
|||||||
bool
|
bool
|
||||||
operator== (K<S,T> a, K<S,T> b)
|
operator== (K<S,T> a, K<S,T> b)
|
||||||
{
|
{
|
||||||
|
bool (*predicate)(const T&, const T&) = almost_equal;
|
||||||
|
|
||||||
return std::equal (std::begin (a),
|
return std::equal (std::begin (a),
|
||||||
std::end (a),
|
std::end (a),
|
||||||
std::begin (b));
|
std::begin (b),
|
||||||
|
predicate);
|
||||||
}
|
}
|
||||||
|
|
||||||
///------------------------------------------------------------------------
|
///------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user