Subject: [Boost-bugs] [Boost C++ Libraries] #1270: uniform_smallint doesn't compile with lagged_fibonacci random number generators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-16 23:49:17
#1270: uniform_smallint doesn't compile with lagged_fibonacci random number
generators
-----------------------------------------------------+----------------------
Reporter: Tom Stepleton (last name at ri.cmu.edu) | Type: Bugs
Status: new | Milestone: To Be Determined
Component: random | Version: Boost 1.34.1
Severity: Problem | Keywords: random uniform_smallint lagged fibonacci lagged_fibonacci compilation error
-----------------------------------------------------+----------------------
Code like this:
{{{
boost::lagged_fibonacci607 rng;
...
boost::uniform_smallint<int> myrand(1,10);
int a = myrand(rng);
}}}
yields errors like these:
{{{
/local/include/boost/random/uniform_smallint.hpp:195: error: invalid
operands of types 'double' and 'double' to binary 'operator%'
/local/include/boost/random/uniform_smallint.hpp:204: error: invalid
operands of types 'double' and 'double' to binary 'operator%'
}}}
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1270>
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:49:56 UTC