Comment Comment by kccqzy It can also be simpler if you use idiomatic modern C++ with std::array<T, n> and std::function<R(T1, T2)>. parent kccqzy 10 years ago