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:
parent
1c94e914c2
commit
2274b77c80
3 changed files with 20 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue