title: How can I use the function std::min() to calculate the minimum?
body: <p>I want to use <code>std::min()</code>, but it shows an error. I included the  library: </p>
  
  <pre><code>for(size_t i = 0; i &lt; 8; ++i) {
      result[i] = std::min({sonarRange[i], sonarRange2[i], sonarRange3[i]});
  }
  </code></pre>