|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2008-04-20 09:51:15
Author: hkaiser
Date: 2008-04-20 09:51:15 EDT (Sun, 20 Apr 2008)
New Revision: 44631
URL: http://svn.boost.org/trac/boost/changeset/44631
Log:
Added some parenthesis to disambiguate expressions.
Text files modified:
trunk/boost/function_types/detail/pp_retag_default_cc/master.hpp | 4 ++--
trunk/boost/function_types/detail/pp_retag_default_cc/preprocessed.hpp | 4 ++--
trunk/boost/function_types/detail/pp_tags/master.hpp | 2 +-
trunk/boost/function_types/detail/pp_tags/preprocessed.hpp | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
Modified: trunk/boost/function_types/detail/pp_retag_default_cc/master.hpp
==============================================================================
--- trunk/boost/function_types/detail/pp_retag_default_cc/master.hpp (original)
+++ trunk/boost/function_types/detail/pp_retag_default_cc/master.hpp 2008-04-20 09:51:15 EDT (Sun, 20 Apr 2008)
@@ -30,8 +30,8 @@
# include BOOST_PP_ASSIGN_SLOT(1)
BOOST_STATIC_CONSTANT(bits_t, value = (
- ::boost::function_types::detail::bits<Tag>::value & BOOST_FT_default_cc
- | ::boost::function_types::detail::bits<RefTag>::value & BOOST_PP_SLOT(1)
+ (::boost::function_types::detail::bits<Tag>::value & BOOST_FT_default_cc)
+ | (::boost::function_types::detail::bits<RefTag>::value & BOOST_PP_SLOT(1))
));
};
Modified: trunk/boost/function_types/detail/pp_retag_default_cc/preprocessed.hpp
==============================================================================
--- trunk/boost/function_types/detail/pp_retag_default_cc/preprocessed.hpp (original)
+++ trunk/boost/function_types/detail/pp_retag_default_cc/preprocessed.hpp 2008-04-20 09:51:15 EDT (Sun, 20 Apr 2008)
@@ -15,8 +15,8 @@
template<class Tag, class RefTag> struct selector_bits
{
BOOST_STATIC_CONSTANT(bits_t, value = (
-::boost::function_types::detail::bits<Tag> ::value & 0x00008000
-| ::boost::function_types::detail::bits<RefTag> ::value & 802
+(::boost::function_types::detail::bits<Tag> ::value & 0x00008000)
+| (::boost::function_types::detail::bits<RefTag> ::value & 802)
));
};
template<bits_t SelectorBits> struct default_cc_tag;
Modified: trunk/boost/function_types/detail/pp_tags/master.hpp
==============================================================================
--- trunk/boost/function_types/detail/pp_tags/master.hpp (original)
+++ trunk/boost/function_types/detail/pp_tags/master.hpp 2008-04-20 09:51:15 EDT (Sun, 20 Apr 2008)
@@ -82,7 +82,7 @@
);
BOOST_STATIC_CONSTANT(bits_t, combined_bits =
- LHS_bits & ~RHS_mask | RHS_bits
+ (LHS_bits & ~RHS_mask) | RHS_bits
);
BOOST_STATIC_CONSTANT(bits_t, combined_mask =
Modified: trunk/boost/function_types/detail/pp_tags/preprocessed.hpp
==============================================================================
--- trunk/boost/function_types/detail/pp_tags/preprocessed.hpp (original)
+++ trunk/boost/function_types/detail/pp_tags/preprocessed.hpp 2008-04-20 09:51:15 EDT (Sun, 20 Apr 2008)
@@ -53,7 +53,7 @@
RHS_bits == (LHS_bits & RHS_mask & (RHS_bits | ~0x000000ff))
);
BOOST_STATIC_CONSTANT(bits_t, combined_bits =
-LHS_bits & ~RHS_mask | RHS_bits
+(LHS_bits & ~RHS_mask) | RHS_bits
);
BOOST_STATIC_CONSTANT(bits_t, combined_mask =
LHS_mask | RHS_mask
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk