diff --git a/Source/Core/Common/VariantUtil.h b/Source/Core/Common/VariantUtil.h index e9e2987d9c..a7c962e9f8 100644 --- a/Source/Core/Common/VariantUtil.h +++ b/Source/Core/Common/VariantUtil.h @@ -26,3 +26,12 @@ auto VariantCast(const std::variant& v) { return detail::VariantCastProxy{v}; } + +template +struct overloaded : Ts... +{ + using Ts::operator()...; +}; + +template +overloaded(Ts...) -> overloaded;