$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r50388 - in trunk/boost/test: . utils/runtime/cla
From: gennadiy.rozental_at_[hidden]
Date: 2008-12-26 12:12:25
Author: rogeeff
Date: 2008-12-26 12:12:25 EST (Fri, 26 Dec 2008)
New Revision: 50388
URL: http://svn.boost.org/trac/boost/changeset/50388
Log:
avoid warnings
Text files modified: 
   trunk/boost/test/floating_point_comparison.hpp   |     8 ++++----                                
   trunk/boost/test/utils/runtime/cla/parameter.hpp |     2 +-                                      
   2 files changed, 5 insertions(+), 5 deletions(-)
Modified: trunk/boost/test/floating_point_comparison.hpp
==============================================================================
--- trunk/boost/test/floating_point_comparison.hpp	(original)
+++ trunk/boost/test/floating_point_comparison.hpp	2008-12-26 12:12:25 EST (Fri, 26 Dec 2008)
@@ -90,7 +90,7 @@
 
     // Avoid underflow.
     if( (f1 == static_cast<FPT>(0)) ||
-        (f2 > static_cast<FPT>(1)) && (f1 < f2*fpt_limits<FPT>::min_value()) )
+        ((f2 > static_cast<FPT>(1)) && (f1 < f2*fpt_limits<FPT>::min_value())) )
         return static_cast<FPT>(0);
 
     return f1/f2;
@@ -219,7 +219,7 @@
     template<typename FPT1, typename FPT2, typename ToleranceBaseType>
     predicate_result
     operator()( FPT1 left, FPT2 right, percent_tolerance_t<ToleranceBaseType> tolerance, 
-                floating_point_comparison_type fpc_type = FPC_STRONG )
+                floating_point_comparison_type fpc_type = FPC_STRONG ) const
     {
         // deduce "better" type from types of arguments being compared
         // if one type is floating and the second integral we use floating type and 
@@ -235,7 +235,7 @@
     template<typename FPT1, typename FPT2, typename ToleranceBaseType>
     predicate_result
     operator()( FPT1 left, FPT2 right, fraction_tolerance_t<ToleranceBaseType> tolerance, 
-                floating_point_comparison_type fpc_type = FPC_STRONG )
+                floating_point_comparison_type fpc_type = FPC_STRONG ) const
     {
         // same as in a comment above
         typedef typename numeric::conversion_traits<FPT1,FPT2>::supertype FPT;
@@ -263,7 +263,7 @@
 
     template<typename FPT>
     bool
-    operator()( FPT fpv, FPT tolerance )
+    operator()( FPT fpv, FPT tolerance ) const
     {
         return tt_detail::fpt_abs( fpv ) < tt_detail::fpt_abs( tolerance );
     }
Modified: trunk/boost/test/utils/runtime/cla/parameter.hpp
==============================================================================
--- trunk/boost/test/utils/runtime/cla/parameter.hpp	(original)
+++ trunk/boost/test/utils/runtime/cla/parameter.hpp	2008-12-26 12:12:25 EST (Fri, 26 Dec 2008)
@@ -89,7 +89,7 @@
     {
         return (id_2_report() == p.id_2_report() && !id_2_report().is_empty())  ||
                m_id_policy.conflict_with( p.m_id_policy )                       || 
-               (m_id_policy.p_type_id != p.m_id_policy.p_type_id) && p.m_id_policy.conflict_with( m_id_policy );
+               ((m_id_policy.p_type_id != p.m_id_policy.p_type_id) && p.m_id_policy.conflict_with( m_id_policy ));
     }
     cstring         id_2_report() const                         { return m_id_policy.id_2_report(); }
     void            usage_info( format_stream& fs ) const