Let's say I have:
static std::vector<int> m_intList;
class Derived : Base
class MoreDerived : Derived
for (auto it = m_intList.begin(); it != m_intList.end(); it++)
std::cout << *it;
class Derived : Base means
class Derived : private Base. The behaviour of private inheritance is:
protectedmembers of the base class become
privatemembers of the derived class.
privatemembers of the base class have no access as members of the derived class.
hence your error.