#include #include using namespace std; template inline void print(const T& t) {cout << t;} template void print(const T *p) { cout << p; if (p != 0) { cout << " -> " << *p; } } int main() { int i = 10; print(&i); cout << "\n"; return EXIT_SUCCESS; }