Hi all, am working on a console application and i really need some help,i made a class that totally fell out of design and am not willing to redo it, i just need a simple work around n all will be fine.
my question is : Is it possible to have a function whose return type will be evaluated at run-time, if possible how can it be done.
Guys please i need a way to do something like this or possibly an alternative because my function can only id the type to use based on the fact that a period is present in the variable result or not... i cant figure anything out (00) , Ill be very glad.
^
Ooh thank you very much @JLBorges though I haven't read about boost and can understand much of the snippet , however i'll have to use it for now "as it is" later I can catch up with boost, BTW am also not sure if my IDE have that library , i'll check it out , thank again for your help , i appreciate.