The program won't link because the two functions int max(int, int) and char max(char, char) are not defined.
In order to tell compiler that you are using a templated function, you have put the angle bracket after the function name: cout<<max<int>(i,i)<<encl;
This post has been archived. It cannot be replied.
Page address has been copied.
To share, click to copy page address.
Share Online by QR Code
Back To Topic:
Back To Forum: