I have 2 functions with the same input and output types.
uint32_t doWork(uint32_t time);
uint32_t MyClass::DoWork(uint32_t time);
now I want to dependency inject this function into another class to either use one of the functions.
So I thought I could use a function point but this is not working since a function pointer requires the class type to also be used.
Is there any way to store both functions in the same function pointer type and pass it to a constructor?
The function from the class is not static.
Any help is appreciated!