#include #include using namespace std; template inline void print(const T& t) {cout << t << "\n";} int main() { print(3.14); void (*p)(const char&) = print; //p is a pointer to function p('A'); //(*p)('A'); would do the same thing return EXIT_SUCCESS; }