Re: [Boost-bugs] [Boost C++ Libraries] #2703: lagged_fibonacci_01::seed() bug

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2703: lagged_fibonacci_01::seed() bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-31 23:21:09


#2703: lagged_fibonacci_01::seed() bug
-------------------------------+--------------------------------------------
  Reporter: rick68_at_[hidden] | Owner: no-maintainer
      Type: Bugs | Status: closed
 Milestone: Boost 1.38.0 | Component: random
   Version: Boost 1.37.0 | Severity: Problem
Resolution: invalid | Keywords:
-------------------------------+--------------------------------------------
Changes (by steven_watanabe):

  * status: new => closed
  * resolution: => invalid

Comment:

 This is not a bug. The value_type of the
 iterator is assumed to be a 32 bit integer, while
 RealType is usually a double. The loop is needed
 because RealType may have more bits of precision than
 the iterator's value_type. Thus, more than one element
 of the input range may be needed to initialize a single
 element of the state. Therefore the iterator needs
 to be incremented in the inner loop.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2703#comment:1>
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:59 UTC