News for hackers. Stuff that matters.
Re:Embracing Modern C++ Safely, Book Review by ncmncm on Friday June 03, 2022 @04:46AM (#31605805)
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.

There are no comments on this comment yet.