Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
roca
· 7y ago · 0 comments
Lambda captures make it pretty easy to create nasty memory safety issues via dangling references. Sure, you could create such issues with the equivalent manually written closure-structs, but lambda captures pave the dangerous path.
Comments
[–]
pfultz2
7y ago
But cppcheck can find a lot of dangling references with lambda captures.