[Boost-bugs] [Boost C++ Libraries] #9907: lagged_fibonacci_01_engine: is of type double, not uint

Subject: [Boost-bugs] [Boost C++ Libraries] #9907: lagged_fibonacci_01_engine: is of type double, not uint
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-14 21:53:18


#9907: lagged_fibonacci_01_engine: is of type double, not uint
------------------------------+---------------------------
 Reporter: thijs@… | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: random
  Version: Boost 1.55.0 | Severity: Cosmetic
 Keywords: |
------------------------------+---------------------------
 The C++11 random engines require to return unsigned integer values.

 The typedefs defined in lagged_fibonacci.hpp all have *double* for the
 UIntType, e.g.

 typedef lagged_fibonacci_01_engine< double, 48, 607, 273 >
 lagged_fibonacci607;

 Maybe the boost random engines don't require the samples to be unsigned
 integers? However, C++11 distributions might expect them to be, if so then
 this might cause incompatibility issues between boost random and C++11
 random?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9907>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC