If T has no duplications, then only hobbes::variant::get<T> gets instantiated, maintaining its previous behavior and performance
If T has more than one occurrence in variant, then only hobbes::variant::visit(tag) gets instantiated, it has runtime overhead compares to get, but it gives correct result
If
T
has no duplications, then onlyhobbes::variant::get<T>
gets instantiated, maintaining its previous behavior and performance IfT
has more than one occurrence in variant, then onlyhobbes::variant::visit(tag)
gets instantiated, it has runtime overhead compares toget
, but it gives correct result