Compile-time Lagrange polynomials in C++
struct evaluate ⋯


Compile-time computation is much easier today using constexpr!  Rather than going for a pre-2014 TMP library, start by writing normal code and see if there is any reason why it can’t simply be declared as constexpr.  Since it is a pure math function, it really should be.

I really think you can write this with no TMP whatsoever.  Edit: Thanks papagaga for doing so!