Printing With printf()
This is a third party API which may cause problems with std::string_view. We'll learn how to use them together correctly.
We'll cover the following...
We'll cover the following...
For example:
Instead you should use:
printf("%.*s\n", static_cast<int>(sv2.size()), ...