title: error: ‘class std::vector<route, std::allocator<route> >’ has no member named ‘exitPoint’
body: <p>Please tell me if some more info is needed here:
  Global declarations:</p>
  
  <pre><code>    typedef struct route
      {
          int          exitPoint;
          bool         allBranchesTraversed;
      } route;
  
     ****vector &lt;route&gt; routeVector;****
  </code></pre>
  
  <p>The culprit func is getting called from:</p>
  
  <pre><code>int main ()
  {
  ....
      do
      {
          ****currentExitPoint = returnShortestWeightedBranch (&amp;routeVector);****
          if (currentExitPoint != -1)
          {
              objRoute.exitPoint = currentExitPoint;          
              routeVector.push_back (objRoute);
          }
          else
          {
            break;
          }
      } while (1);
  }
  </code></pre>
  
  <p>The error is in this func on the line with <strong>**</strong>:</p>
  
  <pre><code>int returnShortestWeightedBranch (vector &lt;route&gt; *objRouteVector)
  {
  ....    
      for (unsigned int h = 0; h &lt; objRouteVector-&gt;size (); h++)
      {
          // Locate 'currentExitPoint' in the vector 'exitPointDetailsVector'.
          for (i = 0; i &lt; exitPointDetailsVector.size(); i++)
          {       
              // If located
              ****if (objRouteVector[h].exitPoint == exitPointDetailsVector[i].exitPoint)****
              {
                  // For all the branches of the 'currentExitPoint',
                  for (j = 0; j &lt; exitPointDetailsVector[i].branchesVector.size(); j++)
                  {
  
  ...............
  }
  </code></pre>