Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
daemin
on Jan 3, 2016
|
parent
|
context
|
favorite
| on:
Named tuple for C++
So you effectively make an enum out of the names in the tuple. That way you can even use the enum to use as the index into the get<> function calls.
cbsmith
on Jan 3, 2016
[–]
Yes, that is one way of looking at it, though enums don't use string constants.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: