fork download
  1. struct A
  2. {
  3. A() {}
  4.  
  5. A& operator=(const A&)
  6. {
  7. return *this;
  8. }
  9. };
  10.  
  11. struct B
  12. {
  13. mutable A a;
  14. };
  15.  
  16. int main()
  17. {
  18. const B x;
  19. x.a = A();
  20. }
Success #stdin #stdout 0.02s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty