Y
Hacker News
new
|
ask
|
show
|
jobs
by
joe_loser
3196 days ago
Yeah, plus the if branches are runtime-checks instead of the if-constexpr approach
1 comments
gpderetta
3196 days ago
There 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.
link