Revert "Use default ref capture to simplify local lambdas, use a template to avoid std::function overhead, other cleanup"

This reverts commit 9122c01d208ce4a26303db8e4e04bf8b8207e6be.
1 file changed