mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Merge pull request #90 from BigRedEye/vectorscan-master
Fix word boundary assertions under C++20
This commit is contained in:
commit
2819dc3d1b
@ -112,7 +112,7 @@ struct LeftEngInfo {
|
|||||||
}
|
}
|
||||||
size_t hash() const;
|
size_t hash() const;
|
||||||
void reset(void);
|
void reset(void);
|
||||||
operator bool() const;
|
explicit operator bool() const;
|
||||||
bool tracksSom() const { return !!haig; }
|
bool tracksSom() const { return !!haig; }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ struct RoseSuffixInfo {
|
|||||||
bool operator<(const RoseSuffixInfo &b) const;
|
bool operator<(const RoseSuffixInfo &b) const;
|
||||||
size_t hash() const;
|
size_t hash() const;
|
||||||
void reset(void);
|
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. */
|
/** \brief Properties attached to each Rose graph vertex. */
|
||||||
|
@ -176,7 +176,7 @@ public:
|
|||||||
vertex_descriptor() : p(nullptr), serial(0) {}
|
vertex_descriptor() : p(nullptr), serial(0) {}
|
||||||
explicit vertex_descriptor(vertex_node *pp) : p(pp), serial(pp->serial) {}
|
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 {
|
bool operator<(const vertex_descriptor b) const {
|
||||||
if (p && b.p) {
|
if (p && b.p) {
|
||||||
/* no vertices in the same graph can have the same serial */
|
/* no vertices in the same graph can have the same serial */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user