On Mon, Aug 10, 2026, at 3:06 AM, Andrea Pinski wrote: > Do we have a callback that needs some other data passed to it? > If not then I would not make this a template and just make the > callback argument a function type `void (*)(const char*)`.
You are correct that the function arguments in this patch don't need to capture anything, but (as you note in the next patch's reply) the function arguments in subsequent patches do. In the interests of making patches stand alone, however, I would still be happy to make this patch use C function pointers, if you prefer, switching back to C++ templates only in patch 2 where the non-empty captures motivate it. John
