fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. class Foo
  6. {
  7. public:
  8. Foo();
  9. };
  10.  
  11. void build(Foo *f)
  12. {
  13. }
  14.  
  15. vector<Foo*> V;
  16.  
  17. Foo::Foo()
  18. {
  19. build(this);
  20. V.push_back(this);
  21. }
  22.  
  23. int main()
  24. {
  25. return 0;
  26. }
Success #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout
Standard output is empty