title: std::vector for_each error C3867 function call missing argument list
body: <p>I want to use the <code>for_each</code> syntax with <code>std::vector&lt;std::string&gt;</code> but I keep getting the following error:</p>
  
  <pre><code>Error   1   error C3867: 'IO::checkFilePath': 
  
  function call missing argument list; use '&amp;IO::checkFilePath' to create a pointer to member
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>void checkFilePath(const std::string&amp; filepath);
  void checkFileList(const std::vector&lt;std::string&gt;&amp; filelist);
  
  void IO::checkFilePath(const std::string&amp; filepath)
  {
      if (!boost::filesystem::exists(filepath) || !boost::filesystem::is_directory(filepath))
      {
          //do smth
      }
  
  }
  
  void IO::checkFileList(const std::vector&lt;std::string&gt;&amp; filelist)
  {
          std::for_each(filelist.begin(), filelist.end(), checkFilePath);
  }
  </code></pre>