fork download
  1. #include <iostream>
  2.  
  3. namespace a {
  4. struct mine {
  5. int value;
  6. };
  7.  
  8. int get( mine & s ) {
  9. return s.value;
  10. }
  11. }
  12.  
  13. int main() {
  14. a::mine s{1};
  15. std::cout << get(s);
  16. }
  17.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
1