I am wondering if type can be determined as runtime information in C++.
(1) Although my question is quite general, for simplicity, I will start from a simple exampl
You need a class that's capable of storing a value of different types. Short from a union, Boost's variant class would be the proper choice.