From 2c6e34a4fe4aa2d0d1a20028e972bfd0dc051cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Thu, 21 Aug 2014 15:39:58 +0200 Subject: [PATCH] add != operator for certain stdlib implementations --- include/mbgl/map/tile.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mbgl/map/tile.hpp b/include/mbgl/map/tile.hpp index 09462604a..24845c81a 100644 --- a/include/mbgl/map/tile.hpp +++ b/include/mbgl/map/tile.hpp @@ -51,6 +51,10 @@ public: return w == rhs.w && z == rhs.z && x == rhs.x && y == rhs.y; } + inline bool operator!=(const ID& rhs) const { + return !operator==(rhs); + } + inline bool operator<(const ID &rhs) const { if (w != rhs.w) return w < rhs.w; if (z != rhs.z) return z < rhs.z;