fork download
  1. struct X {
  2. int m1_, m2_;
  3. void mf()
  4. {
  5. [=]{ m1_ = 1; }();
  6. [&]{ m2_ = 2; }();
  7. }
  8. };
  9.  
  10. int main()
  11. {
  12. X x; x.mf();
  13. }
Success #stdin #stdout 0s 2880KB
stdin
Standard input is empty
stdout
Standard output is empty