mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Remove TODO comments about using explicit bool operators
This commit is contained in:
parent
41285abea5
commit
f25a1453ee
5 changed files with 5 additions and 9 deletions
|
@ -41,10 +41,6 @@ public:
|
|||
/**
|
||||
* Returns false if the tag represents an error value rather than a
|
||||
* legal analyzer type.
|
||||
* TODO: make this conversion operator "explicit" (C++11) or use a
|
||||
* "safe bool" idiom (not necessary if "explicit" is available),
|
||||
* otherwise this may allow nonsense/undesired comparison operations.
|
||||
*
|
||||
*/
|
||||
explicit operator bool() const { return *this != Tag(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue