Opened 9 years ago

Closed 7 years ago

#9907 closed Bugs (wontfix)

lagged_fibonacci_01_engine: is of type double, not uint

Reported by: thijs@… Owned by: No-Maintainer
Milestone: To Be Determined Component: random
Version: Boost 1.55.0 Severity: Cosmetic
Keywords: Cc:

Description

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?

Change History (2)

comment:1 by Steven Watanabe, 9 years ago

Boost.Random has always supported floating point generators. They were eventually removed from the standard proposal. These generators can only be used with the Boost.Random distributions.

comment:2 by Steven Watanabe, 7 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.