1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-18 07:52:14 +01:00

Added virtual bool operator==(const bool value) and virtual bool operator!=(const bool value).

Fixes #2611
Bug introduced with #1700
This commit is contained in:
Federico Fissore 2015-02-10 15:51:47 +01:00
parent cf3e9480a5
commit eb0c2c9baa

View File

@ -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); };