Fixed two compilation issues.
[alexxy/gromacs.git] / src / gromacs / utility / exceptions.cpp
index 8c229a60541a0078596229df17b11e896c32f670..1854b5e8203ac118c7032e400f6506fcf433be8c 100644 (file)
@@ -78,7 +78,7 @@ class ErrorMessage
         explicit ErrorMessage(const std::string &text);
 
         //! Whether this object is a context string.
-        bool isContext() const { return child_; }
+        bool isContext() const { return static_cast<bool>(child_); }
         //! Returns the text for this object.
         const std::string &text() const { return text_; }
         /*! \brief