}
size_t hash() const;
void reset(void);
- operator bool() const;
+ explicit operator bool() const;
bool tracksSom() const { return !!haig; }
};
bool operator<(const RoseSuffixInfo &b) const;
size_t hash() const;
void reset(void);
- operator bool() const { return graph || castle || haig || rdfa || tamarama; }
+ explicit operator bool() const { return graph || castle || haig || rdfa || tamarama; }
};
/** \brief Properties attached to each Rose graph vertex. */
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 */