--- snip --- The problem is that: a) I don't know the size at compile time. b) Once initialized, the array's size stays constant, so vector would be overkill.
There's probably a better way to do this that I don't know about, but one fall-back could be boost::any (
http://boost.org/libs/any).