fork download
  1. #include <memory>
  2. #include <vector>
  3.  
  4. int main() {
  5. std::shared_ptr<const std::vector<int>> a = std::make_shared<const std::vector<int>>();
  6. std::shared_ptr<const std::vector<int>> b = a;
  7. }
Success #stdin #stdout 0s 2980KB
stdin
Standard input is empty
stdout
Standard output is empty