diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h index bcdc30dab..27a302d3c 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -67,7 +67,11 @@ struct FeatureSet { void setSIMD(bool v = true) { set(SIMD, v); } void setAll(bool v = true) { features = v ? All : MVP; } - private: + bool operator<=(const FeatureSet& other) { + return !(features & ~other.features); + } + +private: uint32_t features; }; |