I know overload methods but.... Is there some type to receive numbers and later know the real type ?
In the old VB it was the 'variant' type.
I'd want to have :
void myfunction( anytype calue){
if anytype is float .....
if anytype is double .....
Thanks.
At that point you don't even need templates. Just make non-templated overloads.
But I'm not sure that's what is being asked for. OP needs to clarify.