3 ms·
I have absolutely no idea what point you're trying to make. I clearly wrote "C++ is safe if you ignore most of its libraries and write everything from scratch
by kazinator 3y ago
I have absolutely no idea what point you're trying to make.
I clearly wrote "C++ is safe if you ignore most of its libraries and write everything from scratch [...] and [...] stick to using nothing but the safe primitives you have created".
If you're using foo<string_view>, where string_view is the std::string_view one, then you're not ignoring an unsafe library feature.
Regarding templates, you could at least bring up argument deduction. It's possible to end up with a string_view template parameter implicitly, without using foo<string_view> syntax.