Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for raghunayak

Hi all, This is my first post here. Basically I want to use friend classes across namespace. eg: [CODE]#include <iostream> namespace NamespaceA { class ClassA { public: friend class ClassB; void print( ) { std::cout<<std::endl<<data<<std::endl; } private: int data; }; }; namespace NamespaceB { class ClassB { public: ClassB() { …

Member Avatar for raghunayak
0
2K