From 93ab8b46900aa6b398d2592be960f1a21fcc68b1 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Fri, 12 Apr 2024 14:19:26 +0100 Subject: [PATCH] Fix compiler warning - `definition of implicit copy constructor for 'enumeration' is deprecated because it has a user-provided copy assignment operator [-Wdeprecated-copy-with-user-provided-copy] void operator=(const enumeration& other) { value_ = other.value_; }` --- include/mapnik/enumeration.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/mapnik/enumeration.hpp b/include/mapnik/enumeration.hpp index c9453a673..d5b08736e 100644 --- a/include/mapnik/enumeration.hpp +++ b/include/mapnik/enumeration.hpp @@ -149,9 +149,7 @@ struct MAPNIK_DECL enumeration { using native_type = ENUM; constexpr operator ENUM() const { return value_; } - // constexpr bool operator==(const enumeration_new& rhs) { return value_ == rhs.value_; } void operator=(ENUM v) { value_ = v; } - void operator=(const enumeration& other) { value_ = other.value_; } enumeration() : value_()