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

fix enum_subtype deduction

This commit is contained in:
neargye 2023-06-04 20:45:01 +04:00
parent 1c94e914c2
commit 2274b77c80
3 changed files with 20 additions and 20 deletions

View file

@ -38,8 +38,8 @@ constexpr std::string_view DoWork<Color::GREEN>() {
}
// Helper type for the visitor pattern.
template<class... Ts> struct overloaded : Ts... { using Ts::operator()...; };
template<class... Ts> overloaded(Ts...) -> overloaded<Ts...>;
template <typename... Ts> struct overloaded : Ts... { using Ts::operator()...; };
template <typename... Ts> overloaded(Ts...) -> overloaded<Ts...>;
int main() {
Color c = Color::RED;