OListnot a class, this is a class template. You can either get around all the template specializations:
template <typename> friend class OList;
or a friend with a specific specialization:
friend class OList<T>;
for which you want to OListalready declare. Before defining, Nodeput forward declaration:
template <typename> class OList;
Casey source
share