Boost logo

Boost :

From: nbecker_at_[hidden]
Date: 2002-02-05 15:53:51

>>>>> "rogeeff" == rogeeff <rogeeff_at_[hidden]> writes:

    rogeeff> --- In boost_at_y..., nbecker_at_f... wrote:
>> >>>>> "rogeeff" == rogeeff <rogeeff_at_m...> writes:
    rogeeff> --- In boost_at_y..., nbecker_at_f... wrote:
>> >> What is the purpose of cycle_size_()? Do you really give
    rogeeff> any useful
>> >> meaning to cycle_size < 0?
    rogeeff> cycle_size_() in private helper function used to
    rogeeff> calculate *positive*
    rogeeff> cycle size. Did I answer yout question?
>> No. My question is, can cycle_size every be negative? Why? What
>> does negative cycle size mean? I prefer negative cycle size is not
>> allowed.

    rogeeff> m_bounds.second - m_bounds.first could be negative. But cycle_size_()
    rogeeff> is always returing positive number. What is cycle_size you mentioning?

OK, I see. But does the code actually work if m_bounds.second <

For example, doesn't increment/decrement assume that first < second?

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