mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
checking that the enum is valid (not empty and not forward declaration) (#323)
This commit is contained in:
parent
41f674b061
commit
e09f25780a
8 changed files with 74 additions and 20 deletions
|
|
@ -194,10 +194,6 @@ Header-only C++17 library provides static reflection for enums, work with any en
|
|||
* IOstream operator for enum
|
||||
|
||||
```cpp
|
||||
using namespace magic_enum::ostream_operators; // out-of-the-box ostream operators for enums.
|
||||
Color color = Color::BLUE;
|
||||
std::cout << color << std::endl; // "BLUE"
|
||||
|
||||
using namespace magic_enum::ostream_operators; // out-of-the-box ostream operators for enums.
|
||||
Color color = Color::BLUE;
|
||||
std::cout << color << std::endl; // "BLUE"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue