Re: [PATCH v3 3/3] driver: Rework for_each_path without OOP

2025-08-22 Thread John Ericson
On Fri, Aug 22, 2025, at 2:35 PM, Jason Merrill wrote: > That looks fine to me. Please combine all three patches into one. Great! Also I remembered that since we're using templates now, I can also go ahead and use a polymorphic return type to get rid of a pair of void* <-> char* casts. So the

Re: [PATCH v3 3/3] driver: Rework for_each_path without OOP

2025-08-22 Thread Jason Merrill
On 8/21/25 1:33 AM, John Ericson wrote: From: John Ericson This time use no classes, virtual methods. Just use higher order functions using templates. Now it's even shorter than before --- which is also shorter than the no-lambda, pure OOP original --- but at the cost of some overkill template

[PATCH v3 3/3] driver: Rework for_each_path without OOP

2025-08-20 Thread John Ericson
From: John Ericson This time use no classes, virtual methods. Just use higher order functions using templates. Now it's even shorter than before --- which is also shorter than the no-lambda, pure OOP original --- but at the cost of some overkill template specialization. Here are the stats: just