Directly it's not possible but you might put those variables which you don't want friend function to access in separate base classes holding that variable. Not sure on this. Maybe someone will correct/refine this.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 22
Thread: Friend functionThreaded View
|
Click Here to Expand Forum to Full Width |