template<typename... Ts>
using Type = std::variant<std::shared_ptr<T1>, std::shared_ptr<T2>, std::shared_ptr<Tn>>;
How I can do this using variadic templates and fold expressions?
I try something like this:
template<typename... Ts>
using Type = std::variant<((std::shared_ptr<Ts>), ...)>;`
but it doesn't compile.