From 3834a967f8a6e4fbcf6a84408f29e7202a2bdd3a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 19 Aug 2015 21:20:34 +0100 Subject: [PATCH] No reason for NestedBool operator bool to be explicit --- src/context.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.hh b/src/context.hh index 676b2667..3900d1d8 100644 --- a/src/context.hh +++ b/src/context.hh @@ -25,7 +25,7 @@ struct NestedBool void set() { m_count++; } void unset() { kak_assert(m_count > 0); m_count--; } - explicit operator bool() const { return m_count > 0; } + operator bool() const { return m_count > 0; } private: int m_count = 0; };