mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 11:16:29 +03:00
fix: Mark operator bool explicit
This commit is contained in:
@@ -176,7 +176,7 @@ public:
|
||||
vertex_descriptor() : p(nullptr), serial(0) {}
|
||||
explicit vertex_descriptor(vertex_node *pp) : p(pp), serial(pp->serial) {}
|
||||
|
||||
operator bool() const { return p; }
|
||||
explicit operator bool() const { return p; }
|
||||
bool operator<(const vertex_descriptor b) const {
|
||||
if (p && b.p) {
|
||||
/* no vertices in the same graph can have the same serial */
|
||||
|
Reference in New Issue
Block a user