I am in need of a variable that can contain any variable type. Something like this:I know I can simply declare a bunch of constant numbers, who each represents a variable type. But that would be very non-optimal if there already exists an easier way. Could I use templates to achieve this or the use of preprocessors/macros?Code:VARTYPE Var; Var = int; Var = double;
Any help or tips are highly appreciated.