HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by ot | Hacker News Reader
Parent
Full thread
ot
·
You can use void for that.
View on HN
Maxatar
·
void could be an actual meaningful type for a template rather than a dummy type.
ot
·
You could say the same thing about std::monostate, which is not a dummy type. If you need a unique sentinel type you have to make one for that purpose.
Reply on news.ycombinator.com