[Boost-bugs] [Boost C++ Libraries] #2321: Cosmetic warning in function_types with g++ 4.3

Subject: [Boost-bugs] [Boost C++ Libraries] #2321: Cosmetic warning in function_types with g++ 4.3
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-12 07:16:07


#2321: Cosmetic warning in function_types with g++ 4.3
-------------------------------------------------+--------------------------
 Reporter: Joel Falcou <joel.falcou_at_[hidden]> | Owner: t_schwinger
     Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: function_types
  Version: Boost 1.36.0 | Severity: Cosmetic
 Keywords: |
-------------------------------------------------+--------------------------
 Using function_types meta-functions raises this warning under g++ 4.3
 (Linux Ubuntu 8.04) :

 /usr/local/include/boost-1_36/boost/function_types/detail/pp_tags/preprocessed.hpp:55
 warning: suggest parentheses around arithmetic in operand of |

 the code affected is :

  BOOST_STATIC_CONSTANT(bits_t, combined_bits = LHS_bits & ~RHS_mask |
 RHS_bits );

 The fix is somehow easy :

  BOOST_STATIC_CONSTANT(bits_t, combined_bits = LHS_bits & (~RHS_mask |
 RHS_bits) );

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2321>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC