Generic, type-safe delegates in C++ (revised) | Hacker News Reader