4 ms·
No, that post refers to the lifetime of temporaries held by local reference variables. My question is about temporaries created to pass reference parameters to
by Jare 10y ago
No, that post refers to the lifetime of temporaries held by local reference variables. My question is about temporaries created to pass reference parameters to a function. Is the lifetime of that temporary the BODY of the function? The full expression that calls the function? The enclosing scope of that full expression? (for the record, VS2017 does the latter)
- deleted 10y ago[deleted]