Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-01-12 11:19:28

On Fri, 12 Jan 2001, Moore, Paul wrote:
paul.m> Thanks for pointing this out. I won't use !! though (as
paul.m> someone pointed out in a later post, the integer type may
paul.m> not have operator! either). My initial preference is for
paul.m> "while (m != 0)" - would that cause a problem (I think it
paul.m> requires that the integer type be comparable with built-in
paul.m> integers, hardly an unreasonable requirement)?

Sorry, I think it is an unreasonable requirement. In my experience with
MTL, I've run into lots of number types that are not comparable with
built-in integers. Using "while (m != IntType())" is much better. Even
better would be for boost to have some sort of number_traits class that
defines one() and zero() functions.


 Jeremy Siek www:
 Ph.D. Candidate email: jsiek_at_[hidden]
 Univ. of Notre Dame work phone: (219) 631-3906

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