Our oldest compiler (RHEL 5, GCC 4.7 for manylinux1) only has full support for C++11, but partial support for lambda initializers (e.g. [shared_this = shared_from_this()]() { shared_this->do_cancel(); }) so we should use it. Also avoid implicit this in closures when we have a shared_ptr pointing to the object.
Our oldest compiler (RHEL 5, GCC 4.7 for manylinux1) only has full support for C++11, but partial support for lambda initializers (e.g.
[shared_this = shared_from_this()]() { shared_this->do_cancel(); }
) so we should use it. Also avoid implicitthis
in closures when we have ashared_ptr
pointing to the object.