4 ms·
Lambda captures make it pretty easy to create nasty memory safety issues via dangling references. Sure, you could create such issues with the equivalent manuall
by roca 7y ago
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.
- pfultz2 7y agoBut cppcheck can find a lot of dangling references with lambda captures.