T
ThunderMusic
Hi,
I have a value that contains flags that I must get using a bitmask. I tryied
with the && operator, but the compiler outputs this error :
Operator '&&' cannot be applied to operands of type 'int' and 'int'
The code is the following :
// MASKS.Insert = 2
if (_RightMask && (int)MASKS.Insert)
{
do something
}
I tried with and without the cast (int), but nothing works... Am I missing
something? it seems to be the right way of doing it but the compiler does
not allow it.
Thanks
ThunderMusic
I have a value that contains flags that I must get using a bitmask. I tryied
with the && operator, but the compiler outputs this error :
Operator '&&' cannot be applied to operands of type 'int' and 'int'
The code is the following :
// MASKS.Insert = 2
if (_RightMask && (int)MASKS.Insert)
{
do something
}
I tried with and without the cast (int), but nothing works... Am I missing
something? it seems to be the right way of doing it but the compiler does
not allow it.
Thanks
ThunderMusic