Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
C++
/
References
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?
Until the stored reference is destroyed
Until the end of the full expression containing the call
Until the program exits
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the Result factory
Spot the bug
A new version is available
Reload