15 Feb
2005
15 Feb
'05
6:40 p.m.
Ben Hutchings
Actually it can:
struct D : C { void foo(std::string); };
mem_fun mf = static_cast
(&D::foo); Not that I'd recommend doing that, as it invites type errors.
Creating an instance by breaking the type system is cheating. Why not
reinterpret_cast