News for hackers. Stuff that matters.
Re:C++20 Idioms for Parameter Packs by logicchains on Tuesday February 27, 2024 @02:01PM (#39528124)
You have static_assert for testing/debugging. The lovely thing about compile-time programming is you don't even need a separate test stage; the compiler runs your tests (asserts) for you. Then if the code builds you know it's correct.

This pattern is getting easier and easier in modern C++ as more and more thing are made constexpr.

There are no comments on this comment yet.