Is there a way for a derived implementation of a base function to access a class where base is a friend?
<p>Here is my issue. I have a container which takes in a pointer to the base class. When the container calls a certain method declared virtual, the derived classes can modify a pointer to the container, but only the base is a friend and since the container is compiled as a dll, it is not convenient to add friend Derived; to the container for each derived class. What can I do?</p>

<p>Thanks</p>
