c++ lambda capture, weak_ptr, shared_ptr many subtle caveats 5/5 (1)

Some notes about C++ lamba capture, shared_ptr/weak_ptr, they are not quite obvious! (1) lambda capture implement it is simply just put the captures as members either by copy or reference. special capture this point:  we don’t need to make a distinction between local variables and fields of a class when writing lambda functions. how to • Read More »