Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class C {
- private:
- enum X {
- X_VALUE
- };
- friend void foo(X);
- };
- // C::X is not available here
- void foo(C::X x) {
- // C::X *is* available here
- C::X x2 = C::X_VALUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement