fork download
  1. #include <utility>
  2.  
  3. struct Foo {};
  4.  
  5. void f(Foo &&) {}
  6. void g(Foo && x) { f(std::move(x)); } // !
  7.  
  8. int main() { g(Foo{}); }
  9.  
Success #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty