title: Why is std::min failing when windows.h is included?
body: <pre><code>#include &lt;algorithm&gt;
  #include &lt;Windows.h&gt;
  
  int main()
  {
      int k = std::min(3, 4);
      return 0;
  }
  </code></pre>
  
  <p>What is windows doing if I include Windows.h? I can't use <code>std::min</code> in visual studio 2005. The error message is:</p>
  
  <pre><code>error C2589: '(' : illegal token on right side of '::'
  error C2059: syntax error : '::'
  </code></pre>