forked from bblanchon/ArduinoJson
Remove DeserializationError == bool and DeserializationError != bool
This commit is contained in:
1 parent
a7873389c6
commit
943a902a0b
3 files changed
+18
-39
No files matched your search
@@ -57,18 +57,6 @@ class DeserializationError : public SafeBoolIdom<DeserializationError> {
|
||||
operator bool_type() const {
|
||||
return _code != Ok ? safe_true() : safe_false();
|
||||
}
|
||||
friend bool operator==(bool value, const DeserializationError& err) {
|
||||
return static_cast<bool>(err) == value;
|
||||
}
|
||||
friend bool operator==(const DeserializationError& err, bool value) {
|
||||
return static_cast<bool>(err) == value;
|
||||
}
|
||||
friend bool operator!=(bool value, const DeserializationError& err) {
|
||||
return static_cast<bool>(err) != value;
|
||||
}
|
||||
friend bool operator!=(const DeserializationError& err, bool value) {
|
||||
return static_cast<bool>(err) != value;
|
||||
}
|
||||
|
||||
// Returns internal enum, useful for switch statement
|
||||
Code code() const {
|
||||
|
||||
Reference in new issue
Block a user