title: Convert std::string to integer
body: <p>I'm trying to convert a <code>std::string</code> stored in a <code>std::vector</code> to an integer and pass it to a function as a parameter. </p>
  
  <p>This is a simplified version of my code:</p>
  
  <pre><code>vector &lt;string&gt; record;
  functiontest(atoi(record[i].c_str));
  </code></pre>
  
  <p>My error is as follows:</p>
  
  <pre><code>error: argument of type ‘const char* (std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::)()const’ does not match ‘const char*’
  </code></pre>
  
  <p>How can I do this?</p>