From 11364cbd53984d69453ecdb8f7c8f10efce2762a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 19 Aug 2019 22:35:30 -0400 Subject: [PATCH] driver/ToolBase: Make operator bool() explicit Prevents error-prone conversions to bool. --- hecl/driver/ToolBase.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hecl/driver/ToolBase.hpp b/hecl/driver/ToolBase.hpp index 6a28a7251..1e6b82ca3 100644 --- a/hecl/driver/ToolBase.hpp +++ b/hecl/driver/ToolBase.hpp @@ -96,7 +96,7 @@ public: virtual hecl::SystemString toolName() const = 0; virtual int run() = 0; virtual void cancel() {} - inline operator bool() const { return m_good; } + explicit operator bool() const { return m_good; } }; class HelpOutput {