Post #2813121
2026-05-12 17:31 UTC
@simontatham@hachyderm.io @erisceleste@tech.lgbt @thephd@pony.social I think you want to switch on a pair type. Still needs hacks though.
https://godbolt.org/z/TGfefnYfM
Replies (1)
-
@uecker@mastodon.social 2026-05-12 17:38
@simontatham@hachyderm.io @erisceleste@tech.lgbt @thephd@pony.social But I am not a fan of overloading. So I like to pass types explicitly and then it could look like the following. One can only pass typedef names, but this i not too problematic for my use cases. https://godbolt.org/z/Pf7Tvjd81