fork download
  1. #include <string>
  2. #include <memory>
  3. #include <iostream>
  4.  
  5. namespace X
  6. {
  7. class S;
  8. }
  9.  
  10. std::string r(X::S &s);
  11.  
  12. namespace X
  13. {
  14. class S
  15. {
  16. friend std::string (::r)(X::S &s);
  17. std::unique_ptr<std::istream> s_;
  18. };
  19. }
  20.  
  21. std::string r(X::S &s)
  22. {
  23. auto& x = s.s_;
  24. return "";
  25. }
  26.  
  27. int main(void) {}
Success #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout
Standard output is empty