mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
Explicitly compare pointer to zero to silence a rather pointless VS warning
This commit is contained in:
parent
c1b21c0790
commit
d322e15038
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ public:
|
|||
|
||||
ValueType type() const { return ptr_->type(); }
|
||||
|
||||
operator bool() const { return ptr_.get(); }
|
||||
operator bool() const { return ptr_.get() != 0; }
|
||||
bool operator==(int dummy) const { return (dummy == 0) && (ptr_.get() == 0); }
|
||||
bool operator!=(int dummy) const { return !(operator==(dummy)); }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue