[C++] Store different types in a single vector