No reason for NestedBool operator bool to be explicit

This commit is contained in:
Maxime Coste 2015-08-19 21:20:34 +01:00
parent 8af3b52bfa
commit 3834a967f8

View File

@ -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;
};