title: 'mem_fun' : is not a member of 'std'
body: <p>I've been experiencing this error for a while now, on every project that I have built with the CryEngine2 SDK in Visual Studio 2013 Professional.
  Most of the time, I have just edited the function from this:</p>
  
  <pre><code>void CMultipleGrabHandler::Reset()
  {
      std::for_each (m_handlers.begin(), m_handlers.end(), std::mem_fun (&amp;CBaseGrabHandler::Reset));
  
      std::vector &lt;CAnimatedGrabHandler*&gt;::iterator it = m_handlers.begin();
      std::vector &lt;CAnimatedGrabHandler*&gt;::iterator end = m_handlers.end();
      for ( ; it != end; ++it)
          delete *it;
  
      m_handlers.erase (m_handlers.begin (), m_handlers.end ());
  }
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>void CMultipleGrabHandler::Reset()
  {
  }
  </code></pre>
  
  <p>I know it's not a good approach to the problem, but it got rid of the <code>'mem_fun' : is not a member of 'std'</code> error.</p>
  
  <p>I am now looking for a solution to overcome this problem, since I have just started working on a new project, where stability is key; it's <em>not good</em> if I remove the body of <code>CMultipleGrabHandler::Reset()</code>, since it could possibly induce crashes in certain situations.
  I have browsed the internet for a solution to this problem, but I have not found anything (closest thing I found was an explanation of what <code>mem_fun</code> does).</p>
  
  <p>I have tried taking <code>std::</code> off <code>mem_fun</code>, but I just get an <code>mem_fun is undefined</code> error, suggesting that this isn't exactly the right way to go about mending this error.</p>
  
  <p>The project was originally created in Visual Studio 2005, and was migrated to Visual Studio 2013's format when I first opened the solution. 
  Might this be the cause of the problem?
  How can it be fixed?</p>
  
  <p><strong><em>Edit:</em></strong> Added <a href="/questions/tagged/visual-studio-2015" class="post-tag" title="show questions tagged 'visual-studio-2015'" rel="tag">visual-studio-2015</a> as this also applies to the new VS version.</p>