The number of template arguments matter. You are befriending a template that takes two template arguments, but the real template has only one. They are different entities.
Your friend declaration should be:
template<class T>
friend void SomeFunc(T&, Object*);