title: Why is CLion giving me a warning?
body: <p>I declared a std::priority_queue as the refernece said on CLion IDE.</p>
  
  <pre><code>priority_queue&lt;int, vector&lt;int&gt;, greater&lt;int&gt;&gt; pq;
  </code></pre>
  
  <p>Warnig says</p>
  
  <pre><code>Clang-Tidy: Prefer transparent functors 'greater&lt;&gt;'
  </code></pre>
  
  <p>and this code makes no warning.</p>
  
  <pre><code>priority_queue&lt;int, vector&lt;int&gt;, greater&lt;&gt;&gt; pq;
  </code></pre>
  
  <p>I did as the reference says so:</p>
  
  <pre><code>std::priority_queue&lt;int, std::vector&lt;int&gt;, std::greater&lt;int&gt; &gt; third (myints,myints+4);
  </code></pre>
  
  <p>Why is CLion giving me this warning and what code should I use?</p>