An integer value cannot be automatically cast to a pointer type, just like the other way around.
In the case when both parameters can be cast to int type (albeit with loss of precision) and the template parameter is not set, a non-template function will be called.
Login in to like
Login in to comment