Re: [PATCH] driver: Rework for_each_path using C++

2025-08-11 Thread Jason Merrill
On 8/6/25 7:52 AM, John Ericson wrote: The old C-style was cumbersome make making one responsible for manually create and pass a closure (separate function and *_info class for closed-over variables). I would have liked to redo this with C++ lambdas, so we could: - derive environment types impl

[PATCH] driver: Rework for_each_path using C++

2025-08-06 Thread John Ericson
The old C-style was cumbersome make making one responsible for manually create and pass a closure (separate function and *_info class for closed-over variables). I would have liked to redo this with C++ lambdas, so we could: - derive environment types implicitly - have fewer stray static function