Find and delete value in a vector
<pre><code>class Catalog
{
  // string StationTitle;   
  string StationLocation;

 public:
  string StationTitle;
  Catalog()
  {
    StationTitle = "";      
    StationLocation = "";
  }

  Catalog(string Title, string Location)
  {
    StationTitle = Title; 
    StationLocation = Location
  }

  void SetTitle(string Title)  { StationTitle = Title; }
  void SetLocation(string Location) { StationLocation = Location; }

  string GetTitle()    { return StationTitle; }
  string GetLocation() { return  StationLocation; }
};

class StationList  
{ 
  vector&lt;Catalog&gt; List;  //create the vector
  vector&lt;Catalog&gt;::iterator Transit;

 public: 
  void Fill(); 
  void Remove();
  void Show(); 
};

void StationList::Remove() 
{
  string ToDelete;

  cout &lt;&lt; "Enter title to delete: " &lt;&lt; endl;
  cin &gt;&gt; ToDelete;

  for(Transit = List.begin() ; Transit !=List.end() ; Transit++) 
  {  
    if(Transit-&gt;StationTitle() == ToDelete)
    {
      List.erase(Transit);  //line 145
      return;
    }
  }
}
</code></pre>

<p>I would like the user to enter in a StationTitle and for the program to locate the title and delete it if found.  This is what I have come up with so far.<br>
It is giving me a compile error:  chief.cpp:145: error: no match for call to ‘(std::string) ()’</p>
