fork download
  1. namespace A
  2. {
  3. class Foo
  4. {
  5. //stuff
  6. };
  7. }
  8.  
  9. namespace A
  10. {
  11. namespace B
  12. {
  13. class Foo
  14. {
  15. friend class A::Foo; //Visual Studio says "Error: 'Foo' is not a member of 'A'"
  16. };
  17. }
  18. }
  19.  
  20. int main() {
  21. // your code goes here
  22. return 0;
  23. }
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty