Commit 5f8499ab authored by Paul Asmuth's avatar Paul Asmuth
Browse files

add bool conversion to ReturnCode

parent 0f0e3b55
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -93,6 +93,10 @@ public:
    return success_;
  }

  inline operator bool() const {
    return success_;
  }

  inline const std::string& getCode() const {
    return code_;
  }