I can't figure our how to pass multiple bit values of enum class and check them inside function. I have the following code:
enum class BitFlags
{
Write,
Read,
NumOfFlags
};
void update(BitFlags flags)
{
// Figure out if Write and Read flags are set
}
Trying to make
update(BitFlags::Read | BitFlags::Write);
does not work. Appreciate any help. Thanks.