// Build don't link: // Origin: Mark Mitchell struct A { }; int main() { A a; typedef void (A::*F)(); F p; const_cast(a); // ERROR - const_cast requires pointer/ref types const_cast(p); // ERROR - const_cast requires pointer/ref types const_cast(&main); // ERROR - function type in const_cast const_cast(main); // ERROR - function type in const_cast }