-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Description
In file boost/random/mersenne_twister.hpp
in case assert is is defined and empty, this code fails to compile:
if(tmp.i >= n) tmp.twist();
if(j == num_bits - 1)
assert((tmp.x[tmp.i] & 1) == 1);
else
assert((tmp.x[tmp.i] & 1) == 0);
It is a simple fix to make it more organized for the compiler:
if(tmp.i >= n) tmp.twist();
if(j == num_bits - 1)
{
assert((tmp.x[tmp.i] & 1) == 1);
}
else
{
assert((tmp.x[tmp.i] & 1) == 0);
}
With this it compiles nicely
Metadata
Metadata
Assignees
Labels
No labels