C++: variadic templates with lambda expressions for constrained optimization | Hacker News Reader