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

2025-08-22 Thread Jason Merrill
Pushed, thanks! On 8/22/25 5:37 PM, John Ericson wrote: From: John Ericson The old C-style was cumbersome make making one responsible for manually creating and passing in two parts a closure (separate function and *_info class for closed-over variables). With C++ lambdas, we can just: - deri

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

2025-08-22 Thread John Ericson
From: John Ericson The old C-style was cumbersome make making one responsible for manually creating and passing in two parts a closure (separate function and *_info class for closed-over variables). With C++ lambdas, we can just: - derive environment types implicitly - have fewer stray static f