I asked this question earlier:
Passing C++ functions as arguments without function pointer/inlined?
where I wanted to pass a function as an argument. However, the function being passed will require arguments itself, which are only determined at run-time, shortly before the lambda is actually invoked.
I need a way to decide which function to pass in very early on, with the ability for the lambda's arguments to be chosen later on shortly before invoccation?.
Is this possible?
(I cannot use command pattern because there's too much use of polymorphism. I have performance requirements)