1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-10 23:44:29 +00:00

add support big range (#268)

* add support big range

* remove string_view from n()

* fix containers
This commit is contained in:
Daniil Goncharov 2023-05-22 19:44:28 +04:00 committed by GitHub
parent 4c54c094ea
commit 629f7b09af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 601 additions and 784 deletions

View file

@ -37,10 +37,15 @@
#include <catch2/catch.hpp>
#include <magic_enum_containers.hpp>
#include <magic_enum_iostream.hpp>
#include <functional>
enum class Color { RED = 1, GREEN = 2, BLUE = 4 };
template <>
struct magic_enum::customize::enum_range<Color> {
static constexpr bool is_flags = true;
};
enum class Empty {};