Skip to content

Commit

Permalink
Fix build on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Nov 13, 2018
1 parent d2022f3 commit d226e7d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ArduinoJson/Deserialization/DeserializationError.hpp
Expand Up @@ -68,6 +68,14 @@ class DeserializationError {
return (err._code != Ok) == isError;
}

friend bool operator!=(bool isError, const DeserializationError& err) {
return (err._code != Ok) != isError;
}

friend bool operator!=(const DeserializationError& err, bool isError) {
return (err._code != Ok) != isError;
}

// Conversions

operator bool_type() const {
Expand Down

0 comments on commit d226e7d

Please sign in to comment.