mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
add bitwise_operators
This commit is contained in:
parent
cd01fa1ba4
commit
9a700b545d
4 changed files with 71 additions and 8 deletions
|
|
@ -59,7 +59,7 @@ int main() {
|
|||
std::cout << "RED = " << color_integer << std::endl; // RED = -10
|
||||
}
|
||||
|
||||
using namespace magic_enum::ops; // out-of-the-box stream operator for enums.
|
||||
using namespace magic_enum::ostream_operators; // out-of-the-box ostream operator for enums.
|
||||
// ostream operator for enum.
|
||||
std::cout << "Color: " << c1 << " " << c2 << " " << c3 << std::endl; // Color: RED BLUE GREEN
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue