From eb0c2c9baa7db4f96a5b9e5b69b677552f7ce6b9 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Tue, 10 Feb 2015 15:51:47 +0100 Subject: [PATCH] Added virtual bool operator==(const bool value) and virtual bool operator!=(const bool value). Fixes #2611 Bug introduced with #1700 --- libraries/Ethernet/src/EthernetClient.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/Ethernet/src/EthernetClient.h b/libraries/Ethernet/src/EthernetClient.h index 1992db052..16e2500bc 100644 --- a/libraries/Ethernet/src/EthernetClient.h +++ b/libraries/Ethernet/src/EthernetClient.h @@ -24,6 +24,8 @@ public: virtual void stop(); virtual uint8_t connected(); virtual operator bool(); + virtual bool operator==(const bool value) { return bool() == value; } + virtual bool operator!=(const bool value) { return bool() != value; } virtual bool operator==(const EthernetClient&); virtual bool operator!=(const EthernetClient& rhs) { return !this->operator==(rhs); };