The title might be a bit misleading. I have the following problem: I have a tree consisting of leaves and internal nodes. The user should be able to store any information in
You can declare class Tree a friend to UserElement<>, which would allow Tree to access all members of UserElement<>.
class Tree
friend
UserElement<>
Tree