#define STATIC_CAST static_cast template void foo(T *p) { (void)STATIC_CAST(0); }