while using template <typename p>
in my program its not giving any compilation error but i use template <class p>
is giving error while i am passing two vector of different types.
template <class p>
getvector(std::vector<p>&vec)
{
// my operation
}
this is the function which will receive the vector , i am using the template <typename p>
it not giving compilation error. can any body explain what makes if differ from template <typename p >