star-sp

Random number generators and distributions
git clone git://git.meso-star.fr/star-sp.git
Log | Files | Refs | README | LICENSE

commit 1d77143bd0e51b82ce8c36c05cddec68369707df
parent a48dec076fba4d864902582acfac3c62f5eb52a6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 14 Oct 2021 12:08:42 +0200

Write the 0.12 release note

Diffstat:
MREADME.md | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -34,6 +34,24 @@ variable to the directory that contains the `boost` include directory. ## Release notes +### Version 0.12 + +Ensures C++11 compliance to correct gcc 11 compilation errors. On the other +hand, this introduces API breaks. + +According to the C++11 standard, the min/max values of a +UniformRandomBitGenerator must be static constant expressions. But until now, +gcc has been flexible enough to allow the use of UniformRandomBitGenerators +with regular min/max values. At run time, the caller could thus define its own +RNG type as provided by the struct `ssp_rng_type` data structure. +Unfortunately, since its version 11, gcc is more severe and refuses to compile +this code. + +This version updates the API to respect this C++11 constraint. The +`ssp_rng_type` is no longer a structure; it becomes an enumeration which is +then instantiated internally in a specific UniformRandomBitGenerator with +min/max values resolved at compilation time. + ### Version 0.11.1 Sets the CMake minimum version to 3.1 in the Random123Config.cmake file: since