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