fork download
  1. #include <iostream>
  2. #include <memory>
  3. using namespace std;
  4.  
  5. class A
  6. {
  7. public:
  8. A(int a, bool b)
  9. {}
  10. };
  11.  
  12. int main() {
  13. std::shared_ptr<A> p;
  14.  
  15. p = std::make_shared<A>(1, true);
  16.  
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 4688KB
stdin
Standard input is empty
stdout
Standard output is empty