Boost logo

Boost :

From: Rozental, Gennadiy (Gennadiy_at_[hidden])
Date: 2002-08-20 11:25:52

> I think the use of explicit specialization (<FPT>) makes that a
> non-dependent name, though I'm not certain. Did you try to get Comeau
> online to compile it?

 You probably right. Cameou produce the same error. I changed the code to:

template<typename FPT, typename ToleranceSource>
inline bool
compare_and_continue_impl( FPT left, FPT right, ToleranceSource
                        wrapstrstream const& message, char const* file_name,
int line_num,
                        unit_test_framework::report_level loglevel =
unit_test_framework::report_all_errors )
    bool predicate = check_is_closed( left, right, tolerance_src );


where check_is_closed defined in floating_point_comparisons.hpp like this:

template<typename FPT, typename ToleranceSource>
check_is_closed( FPT left, FPT right, ToleranceSource tolerance, bool
strong_or_weak = true )
    close_at_tolerance<FPT> pred( tolerance, strong_or_weak );

    return pred( left, right );


It's now passing Cameou test. I will recheck with gcc later


Boost list run by bdawes at, gregod at, cpdaniel at, john at