coding
[EMCpp]Item-31 Avoid Default Capture Modes
· β˜• 3 min read

Default by-reference capture can lead to dangling references; default by-value capture is susceptible to dangling pointers, while misleadingly susggests the lambdas are self-contained.


[EMCpp]Item-28 Understand Reference Collapsing
· β˜• 3 min read

Reference collapsing occurs in four contexts: template instantiation, auto type generation, creation and use of typedefs and alias declarations, and decltype.