Boost logo

Boost Users :

From: John Maddock (jz.maddock_at_[hidden])
Date: 2021-08-03 22:24:17

On 03/08/2021 17:53, Claudio La Rosa via Boost-users wrote:
> My array have only 3 elements, but I indexed it with an modulo
> operation (%) that use a uint128_t value. The result of modulo
> operation is a uint128_t value type.
> But well, I now use with success a standard cast for obtain a valid
> index type value!
OK, there is also a function integer_modulus(a,b) which returns the
result of a%b as the type of b (since the result must be smaller than b).

This email has been checked for viruses by Avast antivirus software.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at