The underlying std::string is freed?
The underlying std::string is freed?
Posted Jul 5, 2024 15:24 UTC (Fri) by intelfx (subscriber, #130118)In reply to: The underlying std::string is freed? by mathstuf
Parent article: New features in C++26
Right. This is one of the possible interpretations, but then we should be talking about a **std::string_view** temporary being destroyed, rather than the underlying std::string; and the fact that the former is a non-owning reference is wholly irrelevant.