title: Vector of structs c++
body: <p>I am having an issue with creating a vector of structs. In my function AddApp I am unable to "push_back" the newly allocated struct into the vector. I get the error message "Invalid Arguments". I looked around to see if someone had a similar issue but nothing that helped. Can anyone point out whats the flaw in my logic? Thx.</p>
  
  <pre><code>class AppHolder
  {
  private:
      struct Info
      {
      int refNumber;
      string name;
      string link;
      };
  
  vector&lt;Info&gt; dataBase;
  
  public:
      void AddApp(int ,string ,string );
  };
  
  void AppHolder::AddApp(int R, string N, string L)
  {
  Info *newApp = new Info;
  newApp -&gt; name = N;
  newApp -&gt; link = L;
  newApp -&gt; refNumber = R;
  
  dataBase.push_back(newApp);
  }
  </code></pre>