Original Post
#define PRINT(a) printf(#a)
So PRINT(hello) will be replaced by printf("hello"). Basic preprocessor stuff. Is there any such functionality for C++ templates?
tempate <class T>
class Whatever
{
void Function ()
{
printf(T); // <---- ???
}
};
Is there any way I can make this work?