21 Jul 2025
The same advice is also mentioned on YouTube in the video below, although with a lot of important history, and it is 2.5-hour-long lecture.
The same advice is also mentioned on YouTube in the video below, although with a lot of important history, and it is 2.5-hour-long lecture.
Do not use static_assert to constrain the types you are developing. Huh? What does that even mean? Why not? Is that even an issue?
Clarifications added, ommissions and typos fixed. Importantly Godbolt implementation was added. Continue reading
std::apply is a typical example of those numerous standard C++ std lib types begging to be made comfortable. Not just usable.
In its raw form, it requires a lot of typing. And a lot of typing means a lot of bugs. Made by the team of course, not you. So, I made one little proxy type aka “wrapper” that is really simple but makes std::apply usage, much more palatable. And safe. Continue reading