fork download
  1. #include <memory>
  2.  
  3. struct A{
  4. };
  5. void f(std::unique_ptr<A> p, std::unique_ptr<A> p2){
  6. }
  7. int main(){
  8. // f(std::unique_ptr<A>(new A()), std::unique_ptr<A>(new A()));
  9. f([&](){return std::unique_ptr<A>(new A());}(), [&](){return std::unique_ptr<A>(new A());}());
  10. return 0;
  11. }
Success #stdin #stdout 0s 3056KB
stdin
Standard input is empty
stdout
Standard output is empty