fork download
  1. struct Foo
  2. {
  3. int x, y;
  4.  
  5. Foo() = default;
  6. Foo& operator=(const Foo&) = delete;
  7. };
  8.  
  9. int main()
  10. {
  11. Foo f1 {1, 2};
  12. Foo f2 = {1, 2};
  13. }
  14.  
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty