Fix compiler warning - definition of implicit copy constructor for 'enumeration<mapnik::colorizer_mode_enum, &mapnik::colorizer_mode_to_string, &mapnik::colorizer_mode_from_string, &mapnik::colorizer_mode_lookup>' 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_; }
This commit is contained in:
parent
7864289291
commit
93ab8b4690
1 changed files with 0 additions and 2 deletions
|
@ -149,9 +149,7 @@ struct MAPNIK_DECL enumeration
|
||||||
{
|
{
|
||||||
using native_type = ENUM;
|
using native_type = ENUM;
|
||||||
constexpr operator ENUM() const { return value_; }
|
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=(ENUM v) { value_ = v; }
|
||||||
void operator=(const enumeration& other) { value_ = other.value_; }
|
|
||||||
|
|
||||||
enumeration()
|
enumeration()
|
||||||
: value_()
|
: value_()
|
||||||
|
|
Loading…
Reference in a new issue