I have a function that takes flags, it looks like this:
How can I do that? I tried in the Something1 function an if clause with if (flags & FLAG1) for example, but it didnt work as expected. Any ideas?Code:void Something1(en1 flags)
{
...
...
}
//where en1 is an enum as:
enum en1
{
FLAG1,
FLAG2,
FLAG3,
FLAG4,
}
//I need to select more than one flag using the bitwise or operator | like that:
Something1(en1(FLAG1 | FLAG3));
Thanks
