Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ns {
- int f();
- class C {
- friend int f();
- public:
- C(int n=0) : x(n) {}
- private:
- int x;
- };
- }
- int ns::f() {
- ns::C c;
- return c.x;
- }
- int main() {
- ns::f();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement