fork download
  1. #include <vector>
  2.  
  3. struct curl_a {
  4. curl_a(){};
  5. curl_a(int * d, int &l) :data(d), logged(l){};
  6. int * data;
  7. bool logged;
  8. };
  9.  
  10. int main()
  11. {
  12. std::vector<curl_a> foo;
  13. curl_a f;
  14. int x = 10;
  15. foo.push_back({ &x, x });
  16. }
Success #stdin #stdout 0s 3424KB
stdin
Standard input is empty
stdout
Standard output is empty