fork download
  1. struct Foo
  2. {
  3. int Something () { return 5; }
  4. int Other () { return 0; }
  5. };
  6.  
  7. void DoSmth (int t)
  8. {
  9. Foo foo;
  10. auto f = foo.Something () > 0 ? [] (Foo f) { return f.Something (); } : [] (Foo f) { return f.Other (); };
  11. }
  12.  
  13. int main ()
  14. {
  15. DoSmth (5);
  16. }
Success #stdin #stdout 0s 2824KB
stdin
Standard input is empty
stdout
Standard output is empty