fork download
  1. #include <vector>
  2.  
  3. struct parent {};
  4.  
  5. struct child : parent {};
  6.  
  7. int main()
  8. {
  9. const std::vector<child*> children;
  10. std::vector<parent*> parents(parents.begin(), parents.end());
  11. }
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty