mirror of
https://github.com/Neargye/magic_enum
synced 2026-06-08 12:00:02 +00:00
fix enum_subtype deduction
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user