Ticket #2390: floating_point_comparison.hpp.2.diff
File floating_point_comparison.hpp.2.diff, 1.2 KB (added by , 14 years ago) |
---|
-
boost/test/floating_point_comparison.hpp
205 205 template<typename FPT, typename ToleranceBaseType> 206 206 bool 207 207 operator()( FPT left, FPT right, percent_tolerance_t<ToleranceBaseType> tolerance, 208 floating_point_comparison_type fpc_type = FPC_STRONG ) 208 floating_point_comparison_type fpc_type = FPC_STRONG ) const 209 209 { 210 210 close_at_tolerance<FPT> pred( tolerance, fpc_type ); 211 211 … … 214 214 template<typename FPT, typename ToleranceBaseType> 215 215 bool 216 216 operator()( FPT left, FPT right, fraction_tolerance_t<ToleranceBaseType> tolerance, 217 floating_point_comparison_type fpc_type = FPC_STRONG ) 217 floating_point_comparison_type fpc_type = FPC_STRONG ) const 218 218 { 219 219 close_at_tolerance<FPT> pred( tolerance, fpc_type ); 220 220 … … 238 238 239 239 template<typename FPT> 240 240 bool 241 operator()( FPT fpv, FPT tolerance ) 241 operator()( FPT fpv, FPT tolerance ) const 242 242 { 243 243 return tt_detail::fpt_abs( fpv ) < tt_detail::fpt_abs( tolerance ); 244 244 }