fork(1) download
  1. class MyClass
  2. {
  3. private:
  4.  
  5. struct Foo{
  6. int bar;
  7. };
  8.  
  9. Foo myFoo;
  10.  
  11. public:
  12. Foo getFoo(){ return myFoo;}
  13. };
  14.  
  15. int main()
  16. {
  17. MyClass m;
  18. auto f = m.getFoo();
  19. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty