I need a way to do the following and I cannot think of one, this is what I have so far:
typedef Obj2*(*Reaction)();
class Obj1
{
public:
Reaction reaction;
};
class Obj2
{
public:
unsigned int numobj1;
Obj1 *objects;
};
class Obj3:Obj2
{};
Can you find any way of doing this within the syntactical rules of C++?