Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84177 - trunk/boost/log/utility
From: andrey.semashev_at_[hidden]
Date: 2013-05-06 17:02:14


Author: andysem
Date: 2013-05-06 17:02:12 EDT (Mon, 06 May 2013)
New Revision: 84177
URL: http://svn.boost.org/trac/boost/changeset/84177

Log:
Resolved signed/unsigned comparison mismatch.
Text files modified:
   trunk/boost/log/utility/value_ref.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/log/utility/value_ref.hpp
==============================================================================
--- trunk/boost/log/utility/value_ref.hpp (original)
+++ trunk/boost/log/utility/value_ref.hpp 2013-05-06 17:02:12 EDT (Mon, 06 May 2013)
@@ -374,7 +374,7 @@
     template< typename VisitorT >
     typename VisitorT::result_type do_apply_visitor(VisitorT& visitor) const
     {
- BOOST_ASSERT_MSG(m_type_idx < mpl::size< value_type >::value, "Boost.Log: Value reference is corrupted, type index is out of bounds");
+ BOOST_ASSERT(m_type_idx < static_cast< unsigned int >(mpl::size< value_type >::value));
         return apply_visitor_dispatch< value_type, VisitorT >::call(m_ptr, m_type_idx, visitor);
     }
 };


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