Login
From:
www.foonathan.net
(Uncensored)
subscribe
std::string_view accepting temporaries: good idea or horrible pitfall?
https://www.foonathan.net/2017/03/string_view-temporary/
links
backlinks
Roast topics
Find topics
Find it!
std::string_view can be implicitly created from a temporary. This can be dangerous as a temporary might not live as long as the view object. So why is that? And is it a good idea? If not, how should it be instead?