Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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: