diff --git a/code/espurna/mqtt.cpp b/code/espurna/mqtt.cpp index a37e2a136..33f1f1706 100644 --- a/code/espurna/mqtt.cpp +++ b/code/espurna/mqtt.cpp @@ -578,7 +578,9 @@ struct MqttConfigureError { return _err; } - constexpr bool operator==(const MqttConfigureError&) const = default; + constexpr bool operator==(const MqttConfigureError& other) const { + return _err == other._err; + } MqttConfigureError(const MqttConfigureError&) = default; MqttConfigureError& operator=(const MqttConfigureError&) = default;