C/C++ Students
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?
2021 Aug Update
Clarifications added, ommissions and typos fixed. Importantly Godbolt implementation was added. Continue reading
Update 2022 Nov
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
[2021 Apr 08]
Godbolt “proof of the pudding” link added. (Or is it “better” to say “proof is in the pudding“) ? Continue reading