Y
Hacker News
new
|
ask
|
show
|
jobs
by
jcelerier
702 days ago
That sounds achievable at compile-time in c++ with some type-level map implementation such as in boost.mp11 (sadly the language does not allow general use of types as values preventing the use of standard map containers).