Open tonycoz opened 1 month ago
There's plenty to do here.
My only issue is avoiding duplicating most of the code.
I suspect I can do it via template arguments, but char[] template parameters are new/not available (C++20? 23?).
I may need to use inheritance to make it work instead, but that's pretty ugly.
Preferably I'd supply the parameters as constructor arguments, but this is all created by a factory we don't control as far as I can see.
Others to add:
We can control the factory and now do, and using that to supply the parameters.
There's plenty to do here.
My only issue is avoiding duplicating most of the code.
I suspect I can do it via template arguments, but char[] template parameters are new/not available (C++20? 23?).
I may need to use inheritance to make it work instead, but that's pretty ugly.
Preferably I'd supply the parameters as constructor arguments, but this is all created by a factory we don't control as far as I can see.