title: cin.ignore(numeric_limits<streamsize>::max(), '\n'); max() not recognize it
body: <p>I'm taking an intro to C++, and I'm using VStudio 2013 on Win7. I try to avoid the wrong data input from my menus, and it's working in all of them except this one.</p>
  
  <pre><code>    cout &lt;&lt; "Please choose your second number" &lt;&lt; endl;
      cin &gt;&gt; move2;
  
      if (move2 &lt; 1 || move2 &gt; size)
      {
          cout &lt;&lt; "That's not a valid move" &lt;&lt; endl;
          Sleep(2000);
          cin.sync();
          cin.clear();
      }
  </code></pre>
  
  <p>the only difference is that in the condition for move > a variable (size) not a number. When I enter a char it goes back to the question asking for another input, but if I enter a word, it breaks!</p>
  
  <p>I try to use <code>cin.ignore(numeric_limits&lt;streamsize&gt;::max(), '\n');</code> but the compiler highlights <code>max()</code> and it says "expecting identifier".</p>
  
  <p>It maybe easy for all of you good programmers, but I don't know how to fix it. Can anybody help me?</p>