Check C++ enum without initializer for multiple values

Check C++ enum without initializer for multiple values

I've a C++ enum without initializers that I can't change.

I've a C++ enum without initializers that I can't change.

enum Foo {A,B,C};

Because it's not initialized with power of 2 values I can't easily use bit operators to build masks, etc. to check against (Foo::A | Foo::B). Is there a way around this?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

C/C++ vs. Rust: A developer’s perspective

In this post, you'll see the difference between Rust and C/C++ in a developer’s perspective

Variable Introduction in C#[Bangla]

LIKE | COMMENT | SHARE | SUBSCRIBE A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C# has a speci...