The History of constexpr in C++! (Part Two)
This article was translated by AI using Gemini 2.5 Pro from the original Chinese version. Minor inaccuracies may remain. Prequel: The History of constexpr in C++! (Part One) 2015-2016: Syntactic Sugar for Templates In C++, there are many templates that support full specialization, but not many that support partial specialization. In fact, only class templates and variable templates support it. Variable templates can actually be seen as syntactic sugar for class templates, so rounding it up, only class templates truly support partial specialization. The lack of partial specialization can make some code very difficult to write. ...