fork download
  1. #include <vector>
  2. #include <memory>
  3.  
  4.  
  5. int main() {
  6. std::vector<std::shared_ptr<int>> v;
  7. v.emplace_back( new int );
  8. return 0;
  9. }
Success #stdin #stdout 0s 4260KB
stdin
Standard input is empty
stdout
Standard output is empty