template double doCall(Type *instance, double (Type::*pmf)()) { return (instance->*pmf)(); }