Could a class that looked like this be used to hold anything else other than pointers? With out modifying any of it, just adding to it well completing it?
Code:class stack
{
private:
int depth;
int current;
void *stack_layer[100];
public:
int push(void *myobject) { }
void* pop(void)
};