fork download
  1. #include <iostream>
  2. #include <array>
  3. using namespace std;
  4. struct Foo{void operator=(Foo&&ref){cout<<"done!\n";}};
  5. int main() {
  6. std::array<Foo,2> a,b;
  7. a=std::move(b);
  8. cout<<"end\n";
  9. return 0;
  10. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
done!
done!
end