Use template instantiation for friend declaration

This commit is contained in:
Patrick Dehne
2013-10-20 00:43:17 +02:00
committed by Vinnie Falco
parent 7b1e03a585
commit 695cc38b36

View File

@@ -46,8 +46,7 @@ class ListNode
private:
typedef T value_type;
template <typename, typename>
friend class List;
friend class List<T, Tag>;
template <typename>
friend class ListIterator;