3 ms·
Can you say what is the problem here? What is a string_view?
by ufo 12y ago
Can you say what is the problem here? What is a string_view?
- dbaupp 12y agoA non-owning pointer into string memory owned by someone else (effectively a reference into some string). AIUI, the problem is the temporary string returned by get_url() is deallocated immediately after the get_scheme_from_url call, meaning that the string_view reference `scheme` is left dangling.