3 ms·You don't get exhaustiveness checking, which is the killer feature of variants.by ezyang 9y agoYou don't get exhaustiveness checking, which is the killer feature of variants.joe_loser 9y agoYeah, plus the if branches are runtime-checks instead of the if-constexpr approachgpderetta 9y agoThere is about the same amount of runtime checks. In the auto-lambda+constexpr case the switch/if-cascade is inside visit and it is required to dispatch the correct type to the visitor.