mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use template instantiation for friend declaration
This commit is contained in:
committed by
Vinnie Falco
parent
7b1e03a585
commit
695cc38b36
@@ -46,8 +46,7 @@ class ListNode
|
|||||||
private:
|
private:
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
|
|
||||||
template <typename, typename>
|
friend class List<T, Tag>;
|
||||||
friend class List;
|
|
||||||
|
|
||||||
template <typename>
|
template <typename>
|
||||||
friend class ListIterator;
|
friend class ListIterator;
|
||||||
|
|||||||
Reference in New Issue
Block a user