Is it possible to put compile-time conditional code in template functions?
Kinda like,
template <class T>
void print(T &foo){
cout << foo;
#if T == float
cout << " is a float." << endl;
#endif
}
Something like that, I hope I made myself clear.
Thanks in Advance,