mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-05 23:10:48 +00:00
Removed SafeBool
This commit is contained in:
parent
e1bca7017d
commit
cc8206f4c3
4 changed files with 5 additions and 16 deletions
|
@ -56,7 +56,7 @@ namespace Catch {
|
|||
T& operator*() const { return *m_p; }
|
||||
T* operator->() const { return m_p; }
|
||||
bool operator !() const { return m_p == nullptr; }
|
||||
operator SafeBool::type() const { return SafeBool::makeSafe( m_p != nullptr ); }
|
||||
explicit operator bool() const { return m_p != nullptr; }
|
||||
|
||||
private:
|
||||
T* m_p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue