I'm trying to overload the << operator as a friend function in a class definition I'm writing. I've been told that in order to use any of the private members of the class in the function in this case, I have to give the scope of the class. My issue is, Visual Studio keeps telling me these private data members are inaccessible in the friend function.
Here's the code. First, from the header:
Like the comment says, the compiler is complaining identically about LineNode* and firstLinePtr, saying they're "inaccessible." If anyone can point me in the right direction as to what the issue might be, I'll appreciate it.