Advertisement
Guest User

Untitled

a guest
May 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1.  
  2. class C {
  3. private:
  4. enum X {
  5. X_VALUE
  6. };
  7.  
  8. friend void foo(X);
  9. };
  10.  
  11. // C::X is not available here
  12. void foo(C::X x) {
  13. // C::X *is* available here
  14. C::X x2 = C::X_VALUE;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement