>>576
const B* get() { return b; }

あとこうでは
*(a->get()) = b;