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?
C/C++ Students
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 in the spirit of the language to say “in the pudding“) ? Continue reading
The purpose of this post is to show and explain a bit more about the practical usage of C++ “lambda power”. This time in developing a light, fully functional, fast, and hopefully not that often seen, matrix creation utility. Functional programming style.
GitHub gist is here. The previous post with another very interesting matrix variation is here.
Update 2021 MAR: The gist version 6 is a major update. Matrix related code does not use the std::
lib any more.