I\'m trying to check for a bit in a flags value of which flags can be |\'d together. So far i\'m using this
if ((someclass.flags | CONST_SOMEFLAG) == somecl
Use bitwise OR to set the flags, use bitwise AND to test, like this:
if (someclass.flags & CONST_SOMEFLAG) ...