//: C03:TemplateFunctionAddress.cpp // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt // Taking the address of a function generated // from a template. template void f(T*) {} void h(void (*pf)(int*)) {} template void g(void (*pf)(T*)) {} int main() { // Full type exposition: h(&f); // Type induction: h(&f); // Full type exposition: g(&f); // Type inductions: g(&f); g(&f); } ///:~