fork(1) download
  1. #include <tr1/memory>
  2. #include <functional>
  3.  
  4. struct Foo {
  5. void test(std::tr1::shared_ptr<int> i) {}
  6. };
  7.  
  8. int main() {
  9. Foo f;
  10. std::function<void(std::tr1::shared_ptr<int>)> func = std::bind(&Foo::test, f, std::placeholders::_1);
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty