Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
brandmeyer
on Jan 12, 2022
|
parent
|
context
|
favorite
| on:
“Modern” C++ Lamentations (2018)
That's part of why the capture list is explicit in C++. Automatic by-reference captures should only be used for lambdas whose scope is strictly lexical (ie, passed down the call stack, aka "downward funargs"). Otherwise stick with by-value captures.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: