diff options
Diffstat (limited to 'src/wasm-features.h')
-rw-r--r-- | src/wasm-features.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wasm-features.h b/src/wasm-features.h index a1e7a321d..6ef704f82 100644 --- a/src/wasm-features.h +++ b/src/wasm-features.h @@ -88,6 +88,14 @@ struct FeatureSet { return !(features & ~other.features); } + bool operator==(const FeatureSet& other) const { + return *this <= other && other <= *this; + } + + bool operator!=(const FeatureSet& other) const { + return !(*this == other); + } + FeatureSet& operator|=(const FeatureSet& other) { features |= other.features; return *this; |