diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-08-19 21:20:34 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-08-19 21:20:34 +0100 |
| commit | 3834a967f8a6e4fbcf6a84408f29e7202a2bdd3a (patch) | |
| tree | f691c7e805c28b045f03a689a8d0bbea3783754e /src | |
| parent | 8af3b52bfa1af04606b7422ee3f362ba1728e404 (diff) | |
No reason for NestedBool operator bool to be explicit
Diffstat (limited to 'src')
| -rw-r--r-- | src/context.hh | 2 |
1 files changed, 1 insertions, 1 deletions
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; }; |
