title: No member named 'minmax_element'in namespace std with xcode 4.6.3
body: <p>The following codes can compile very well in VC 2010, but when I compile them with xcode 4.6.3 in mac, I have compilation errors as the question title indicates. Any ideas? Thanks.       </p>
  
  <pre><code>         std::vector&lt;int&gt; x_array;
      std::vector&lt;int&gt; y_array;
  
      int min_x,min_y,max_x,max_y;
      auto temp = std::minmax_element(x_array.begin(),x_array.end());
      min_x = *(temp.first);
      max_x = *(temp.second);
  </code></pre>