Boost C++ Libraries: Ticket #2321: Cosmetic warning in function_types with g++ 4.3 https://svn.boost.org/trac10/ticket/2321 <p> Using function_types meta-functions raises this warning under g++ 4.3 (Linux Ubuntu 8.04) : </p> <p> /usr/local/include/boost-1_36/boost/function_types/detail/pp_tags/preprocessed.hpp:55 warning: suggest parentheses around arithmetic in operand of | </p> <p> the code affected is : </p> <blockquote> <p> BOOST_STATIC_CONSTANT(bits_t, combined_bits = LHS_bits &amp; ~RHS_mask | RHS_bits ); </p> </blockquote> <p> The fix is somehow easy : </p> <blockquote> <p> BOOST_STATIC_CONSTANT(bits_t, combined_bits = LHS_bits &amp; (~RHS_mask | RHS_bits) ); </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2321 Trac 1.4.3 Joel Falcou <joel.falcou@…> Sun, 11 Jan 2009 15:50:16 GMT version, milestone changed https://svn.boost.org/trac10/ticket/2321#comment:1 https://svn.boost.org/trac10/ticket/2321#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost 1.37.0</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.37.0</span> → <span class="trac-field-new">Boost 1.38.0</span> </li> </ul> Ticket Joel Falcou <joel.falcou@…> Thu, 12 Feb 2009 19:35:26 GMT attachment set https://svn.boost.org/trac10/ticket/2321 https://svn.boost.org/trac10/ticket/2321 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">preprocessed.hpp.1</span> </li> </ul> <p> First pacthed file : boost/function_types/detail/pp_retag_default_cc/preprocessed.hpp </p> Ticket Joel Falcou <joel.falcou@…> Thu, 12 Feb 2009 19:35:59 GMT attachment set https://svn.boost.org/trac10/ticket/2321 https://svn.boost.org/trac10/ticket/2321 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">preprocessed.hpp.2</span> </li> </ul> <p> function_types/detail/pp_tags/preprocessed.hpp </p> Ticket Joel Falcou <joel.falcou@…> Thu, 12 Feb 2009 19:36:38 GMT version, severity, milestone changed https://svn.boost.org/trac10/ticket/2321#comment:2 https://svn.boost.org/trac10/ticket/2321#comment:2 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.37.0</span> → <span class="trac-field-new">Boost 1.38.0</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Cosmetic</span> → <span class="trac-field-new">Problem</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.38.0</span> → <span class="trac-field-new">Boost 1.39.0</span> </li> </ul> <p> Adding patched files for reference, in hoep it'll be fixed in 1.39 </p> Ticket Andrey Semashev Sun, 30 Aug 2009 10:23:34 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2321#comment:3 https://svn.boost.org/trac10/ticket/2321#comment:3 <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/55872" title="Merged patchset 44631 from trunk. Resolves parenthesis warnings on GCC ...">[55872]</a>) Merged patchset 44631 from trunk. Resolves parenthesis warnings on GCC 4.3. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2321" title="#2321: Bugs: Cosmetic warning in function_types with g++ 4.3 (closed: fixed)">#2321</a>. </p> Ticket