I've already used overloading for implementing my function:
void test(int a, string &ss)
and
void test(int a, double &xx)
The thing is that this functions pulls data out from a class which contains strings and doubles, now I was thinking it would be useful to be able to be able to use indexes instead of the actual class variables names, for example I would be able to use:
getData(0); getData(1)
instead of:
obj.Name1; obj.Name2
I think at my data as a kind of array (or list) with mixed types components.