From 08b9da0df5d1e36c47b556b24085cdadf0357480 Mon Sep 17 00:00:00 2001 From: Mathias Baumann Date: Wed, 3 Jul 2019 16:48:07 +0200 Subject: [PATCH] Make Whiskers fail early when called with int --- libdevcore/Whiskers.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libdevcore/Whiskers.h b/libdevcore/Whiskers.h index ebe17b51c..5d326bf02 100644 --- a/libdevcore/Whiskers.h +++ b/libdevcore/Whiskers.h @@ -85,6 +85,8 @@ public: std::string render() const; private: + // Prevent implicit cast to bool + Whiskers& operator()(std::string _parameter, long long); void checkParameterValid(std::string const& _parameter) const; void checkParameterUnknown(std::string const& _parameter) const;