diff options
Diffstat (limited to 'src/wasm-features.h')
-rw-r--r-- | src/wasm-features.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wasm-features.h b/src/wasm-features.h index cda3ce447..366b75200 100644 --- a/src/wasm-features.h +++ b/src/wasm-features.h @@ -193,9 +193,12 @@ struct FeatureSet { return *this; } - FeatureSet operator-(FeatureSet& other) const { + FeatureSet operator-(const FeatureSet& other) const { return features & ~other.features; } + FeatureSet operator-(Feature other) const { + return *this - FeatureSet(other); + } uint32_t features; }; |