I\'m trying to make a vector in C++ that can store 3 different data types. I do not want to use the boost library. Something like:
vector
Does it have to be a vector? You might just consider a linked list of generic type, then iterate through that list, use typeid() to figure out the data type of the node and pull the data with a node.get() function.