Merge pull request #225 from lioncash/bool

CArchitectureQueue: Make operator bool explicit
This commit is contained in:
Luke Street 2020-03-15 19:45:22 -04:00 committed by GitHub
commit 70c60ecf2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ public:
return msg;
}
void Clear() { m_list.clear(); }
operator bool() const { return m_list.size() != 0; }
explicit operator bool() const { return !m_list.empty(); }
};
} // namespace urde