template friend class/method