Boost logo

Boost Users :

Subject: Re: [Boost-users] max value by the number of bits
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-02-05 18:59:34


>
> low_bits_mask_t<Bits>::sig_bits is defined as
> (~( ~(unsigned_int(0u )) << Bits )) )
>
> which is equivalent to 2^Bits-1 without risk of overflow.
>

Vicente, what's unsigned_int?

Christian


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net