hi,
let say i have a following scenario:
a function like tishow do i prevent user passing a class or a structure or aanoter function to my function print. I mean i know if a wrong thing is passed that i'll get an error eveuntaly but is there a way to explicitly check what has been passed. How is this done usually ?Code:
template <typename T1>
print (T1 x){
cout << x << "\n";
}
thnx
baxy