A function stores a const std::string& parameter that was bound to a temporary argument. …

from References
C++23 (GCC 13.3.0) intermediate 1 min

A function stores a const std::string& parameter that was bound to a temporary argument. How long does that temporary normally live?

Report an error