File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ struct LeftEngInfo {
112112 }
113113 size_t hash () const ;
114114 void reset (void );
115- operator bool () const ;
115+ explicit operator bool () const ;
116116 bool tracksSom () const { return !!haig; }
117117};
118118
@@ -133,7 +133,7 @@ struct RoseSuffixInfo {
133133 bool operator <(const RoseSuffixInfo &b) const ;
134134 size_t hash () const ;
135135 void reset (void );
136- operator bool () const { return graph || castle || haig || rdfa || tamarama; }
136+ explicit operator bool () const { return graph || castle || haig || rdfa || tamarama; }
137137};
138138
139139/* * \brief Properties attached to each Rose graph vertex. */
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ class vertex_descriptor : totally_ordered<vertex_descriptor<Graph>> {
176176 vertex_descriptor () : p(nullptr ), serial(0 ) {}
177177 explicit vertex_descriptor (vertex_node *pp) : p(pp), serial(pp->serial) {}
178178
179- operator bool () const { return p; }
179+ explicit operator bool () const { return p; }
180180 bool operator <(const vertex_descriptor b) const {
181181 if (p && b.p ) {
182182 /* no vertices in the same graph can have the same serial */
You can’t perform that action at this time.
0 commit comments