title: C++11/ Auto assign me a bool?
body: <pre><code>TGuildMemberContainer::iterator it;
  if ((it = m_member.find (p-&gt;dwPID)) == m_member.end())
  {
      m_member.insert (std::make_pair (p-&gt;dwPID, TGuildMember (p-&gt;dwPID, p-&gt;bGrade, p-&gt;isGeneral, p-&gt;bJob, p-&gt;bLevel, p-&gt;dwOffer, p-&gt;szName)));
  }
  else
  {
      TGuildMember&amp; r_gm = it-&gt;second;
      r_gm.pid = p-&gt;dwPID;
      r_gm.grade = p-&gt;bGrade;
      r_gm.job = p-&gt;bJob;
      r_gm.offer_exp = p-&gt;dwOffer;
      r_gm.is_general = p-&gt;isGeneral;
  }
  </code></pre>
  
  <p>Hi, i want to apply auto transform intro my codes, but i'm stuck.
  If i add auto </p>
  
  <pre><code>if (auto it = m_member.find (p-&gt;dwPID) == m_member.end())
  </code></pre>
  
  <p>The auto assign a <code>bool</code></p>
  
  <pre><code>if ( bool it = m_member.find (p-&gt;dwPID) == m_member.end())
  </code></pre>
  
  <p>This say Visual Studio intelisense.</p>
  
  <p>My question, why auto assign me a bool and not the corect iteration range ?</p>