Image

Imagejohnmcelroy wrote in Imagecpp

Hi all,

I have a class with a member function that must be assigned dynamically, so I'm using a member function pointer. The different candidate functions each have different parameter lists, so I would like to create some kind of container (such as a struct) that each of the candidate functions can take. Such a container would hold the parameters used by the function and would make the parameter lists uniform.

The problem with this is that I would like to create such a container dynamically too. It would need to hold a variable number of different data types. I would also like to make this container a member of the class as well.

Can anyone suggest such a container?

Thanks!

John