1
0
Fork 0
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:
neargye 2019-07-24 18:47:36 +05:00
parent cd01fa1ba4
commit 9a700b545d
4 changed files with 71 additions and 8 deletions

View file

@ -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