Hacker News new | ask | show | jobs
by spacechild1 1520 days ago
> There are ways to force such functions to be evaluated at compile time, but they're pretty awkward

C++20 has “consteval“: https://en.cppreference.com/w/cpp/language/consteval