urgent

Write your question here.
I have this error how can I fix it
C++ class "std::vector<std::string, std::allocator<std::string>>" has no member "push_back"
It has you should make pair and then insert it
Not sure what you are doing, this works fine.
1
2
  std::vector<std::string, std::allocator<std::string>> sv;
  sv.push_back("Hello");

There is no need to specify the allocator, since vector uses std::allocator by default.
std::vector<std::string> is sufficient.
Topic archived. No new replies allowed.