Use template instantiation for friend declaration

This commit is contained in:
Patrick Dehne
2013-10-19 15:54:01 -07:00
committed by Vinnie Falco
parent 7b1e03a585
commit 695cc38b36
+1 -2
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;