Compiler Error C2508

'identifier' : access denied

The specified nonpublic class member could not be accessed.

A class (or structure or union) member that has been declared with private or protected access can only be accessed by member functions of the class.