From 8489bb12f802d5b5ec7da0bb96a23204a950bb13 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sat, 25 Apr 2015 10:34:25 +0200 Subject: [PATCH] Add operator!= to datasource (needed for copy_move_test.cpp) --- include/mapnik/datasource.hpp | 5 +++++ include/mapnik/datasource_geometry_type.hpp | 2 ++ 2 files changed, 7 insertions(+) diff --git a/include/mapnik/datasource.hpp b/include/mapnik/datasource.hpp index afc5b456d..0cb9a59b2 100644 --- a/include/mapnik/datasource.hpp +++ b/include/mapnik/datasource.hpp @@ -94,6 +94,11 @@ public: return params_ == rhs.params(); } + bool operator!=(datasource const& rhs) const + { + return !(*this == rhs); + } + /*! * @brief Get the type of the datasource * @return The type of the datasource (Vector or Raster) diff --git a/include/mapnik/datasource_geometry_type.hpp b/include/mapnik/datasource_geometry_type.hpp index ada1d196d..00e4b2af7 100644 --- a/include/mapnik/datasource_geometry_type.hpp +++ b/include/mapnik/datasource_geometry_type.hpp @@ -23,6 +23,8 @@ #ifndef MAPNIK_DATASOURCE_GEOMETRY_TYPE_HPP #define MAPNIK_DATASOURCE_GEOMETRY_TYPE_HPP +#include + namespace mapnik { enum datasource_geometry_t : std::uint8_t {