SHARE
TWEET

Untitled

a guest May 19th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top