Boost C++ Libraries: Ticket #7752: algorithm minmax_element triggers warning with Clang https://svn.boost.org/trac10/ticket/7752 <p> algorithm minmax_element triggers warning with Clang 3.1 </p> <pre class="wiki">if (comp(first, min_result)) min_result = first, potential_min_result = last; </pre><p> is flagged as having Cish comma abuse ;-) </p> <p> Unless I'm missing something subtle, this can easily be avoided with the more C++ish? </p> <pre class="wiki">if (comp(first, min_result)) { min_result = first; potential_min_result = last; } </pre><p> path attached. </p> <p> (This does not show when compiling tests, but does show in user code. There are many duplicated warnings from Boost.Test that make it difficult to find other possibly helpful warnings. And hex_test1 aborted...). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7752 Trac 1.4.3 Paul A. Bristow Fri, 30 Nov 2012 12:07:55 GMT attachment set https://svn.boost.org/trac10/ticket/7752 https://svn.boost.org/trac10/ticket/7752 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">algorithm_minmax_element</span> </li> </ul> <p> Path to suppress warning </p> Ticket Marshall Clow Wed, 12 Dec 2012 15:40:30 GMT <link>https://svn.boost.org/trac10/ticket/7752#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7752#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81876" title="Removed use of comma operator; Refs #7752">[81876]</a>) Removed use of comma operator; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7752" title="#7752: Support Requests: algorithm minmax_element triggers warning with Clang (closed: fixed)">#7752</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Mon, 17 Dec 2012 16:02:41 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7752#comment:2 https://svn.boost.org/trac10/ticket/7752#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/82049" title="merge bug fix for minmax_element to release; Fixes #7752">[82049]</a>) merge bug fix for minmax_element to release; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7752" title="#7752: Support Requests: algorithm minmax_element triggers warning with Clang (closed: fixed)">#7752</a> </p> Ticket