3 ms·
Only by storing it somewhere. So long as it is only passed down a call chain, no problem. string_view really is no different from a naked pointer. Modern C++ t
by ncmncm 4y ago
Only by storing it somewhere. So long as it is only passed down a call chain, no problem.
string_view really is no different from a naked pointer. Modern C++ treats naked pointers with well-deserved suspicion. I never have any trouble because pointers are always strictly evanescent values.