search for: flag1valu

Displaying 1 result from an estimated 1 matches for "flag1valu".

Did you mean: flag1value
2019 Aug 01
5
RFC: Strong typedef for LLVM
...---- It would be nice if the Flag1Name and Flag2Name comments had semantic meaning, such that they could be checked for correctness at compile time. It would be even better if such semantic information was *required* at the point of use. One could construct special classes to make it so: class Flag1Value { bool Value; public: Flag1Value : Value(false) {} explicit Flag1Value(bool V) : Value(V) {} explicit operator bool() { return Value; } }; class Flag2Value { bool Value; public: Flag2Value : Value(false) {} explicit Flag2Value(bool V) : Value(V) {} expl...