This should read `return (mValue & flag) == flag`, as this would currently only work if you were checking to see if any of a set of flags is set, when it would appear to do something different.