On 11/23/2016 05:27 AM, Joseph Rushton Wakeling wrote:

Alternative solution: functionality that expects the full unsigned
integer word (UIntType) to be filled with random bits, should validate
that the min/max values of the generator correspond to UIntType.min and
UIntType.max.

That introduces less breaking change, creates less divergence with the
C++11 standard, and preserves more flexibility for the future.

Good idea - static assert is your friend. -- Andrei

Reply via email to