Compiler Error C2241
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2241.
identifier' : member access is restricted
Code attempts to access a private or protected member.
To fix by using the following possible solutions
Change the access level of the member.
Declare the member a
friendof the accessing function.
Show: