search for: flag2value

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

Did you mean: flag1value
2019 Aug 01
5
RFC: Strong typedef for LLVM
...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) {} explicit operator bool() { return Value; } }; void foo(int arg, Flag1Value F1, Flag2Value F2); foo(arg1, Flag1Value(true), Flag2Value(false)); foo(arg1, Flag2Value(true), Flag1...