>>767
ptrはA型へのポインタだから、当然Aの中にmethodというメンバ
がないとエラーになる。

struct A {
int i;
}

std::auto_ptr<A> ptr(new A);
int j;
ptr->j;

としているのと極端に言えば同じ。