Simplify operator bool()'s used for Tag error checks

This commit is contained in:
Jon Siwek 2019-08-23 11:31:18 -04:00
parent 48873570b5
commit b41e102a7c
4 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ public:
* Returns false if the tag represents an error value rather than a * Returns false if the tag represents an error value rather than a
* legal analyzer type. * legal analyzer type.
*/ */
explicit operator bool() const { return *this != Tag(); } explicit operator bool() const { return *this != Error; }
/** /**
* Assignment operator. * Assignment operator.

View file

@ -42,7 +42,7 @@ public:
* Returns false if the tag represents an error value rather than a * Returns false if the tag represents an error value rather than a
* legal analyzer type. * legal analyzer type.
*/ */
explicit operator bool() const { return *this != Tag(); } explicit operator bool() const { return *this != Error; }
/** /**
* Assignment operator. * Assignment operator.

View file

@ -43,7 +43,7 @@ public:
* Returns false if the tag represents an error value rather than a * Returns false if the tag represents an error value rather than a
* legal reader type. * legal reader type.
*/ */
explicit operator bool() const { return *this != Tag(); } explicit operator bool() const { return *this != Error; }
/** /**
* Assignment operator. * Assignment operator.

View file

@ -43,7 +43,7 @@ public:
* Returns false if the tag represents an error value rather than a * Returns false if the tag represents an error value rather than a
* legal writer type. * legal writer type.
*/ */
explicit operator bool() const { return *this != Tag(); } explicit operator bool() const { return *this != Error; }
/** /**
* Assignment operator. * Assignment operator.