fork(1) download
  1. #include <vector>
  2. #include <memory>
  3. class Interface
  4. {
  5. };
  6.  
  7. class Class : public Interface
  8. {
  9. };
  10.  
  11. int main() {
  12.  
  13. std::vector<std::shared_ptr<Class>> a;
  14. std::vector<std::shared_ptr<Interface>> b (a.begin(), a.end());
  15.  
  16. std::shared_ptr<Class> c1;
  17. std::shared_ptr<Interface> i1=c1;
  18. }
Success #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout

Standard output is empty