title: wierd compile time error: method push_back could not be resolved
body: <p>I have the following piece of code dealing with a vector within a vector. I am getting a very strange compile-time error while working with eclipse.</p>
  
  <p>I am trying to copy the contents of an existing entry in the column_info vector to a new column_info vector in a new table_info vector.</p>
  
  <pre><code>  typedef struct _column_info
   {
  char name[20]; // Column Name
  int type; // 0:INT, 1: CHAR
  int size;
  int offset; // Start Position
   } column_info;
  
    typedef struct _table_info
   {
  char name[20]; // Table Name
  char columns[100];
  vector&lt;column_info&gt; col;
  char primary_key[20];
  int recordsize;
  int totalsize;
  int records;
    } table_info;
  
    vector&lt;table_info&gt; v;
  
    table_info* get_table_info(const string&amp; tablename)
    {
  for (int i = 0; i &lt; (int) v.size(); i++)
  {
      if (strcmp(v.at(i).name, tablename.c_str()) == 0)
          return &amp;v.at(i);
  }
  return NULL;
     }
  
    void select_table_nested(char* tablename, char* select_column[], int column_cnt[],      int nested_cnt, int select_column_count)
    {
     table_info* table_info;
     table_info = get_table_info(tablename);
     table_info new_table;
     column_info cols;
  
     for( int k =0; k &lt; table_info-&gt;col.size(); k++)
     {
       strcpy(cols.name, table_info-&gt;col.at(k).name);
       cols.type = table_info-&gt;col.at(k).type;
       cols.size = table_info-&gt;col.at(k).size;
       cols.offset = table_info-&gt;col.at(k).offset;
       new_table.col.push_back(cols); ---&gt; field 'col' could not be resolved
                                      ---&gt; Method 'push_back' could not be resolved
      }
     }
  </code></pre>
  
  <p>Am I missing out on something? Because I am performing a push_back operation in other parts of this same code (in different functions) and not getting this error, except in this particular function. Please help.</p>