fork download
  1. #include <functional>
  2.  
  3. struct foo {
  4. void operator()() {}
  5. };
  6.  
  7. int main() {
  8. foo bar;
  9. std::function<void()> test;
  10. test = std::move(bar);
  11. }
  12.  
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty