Re: [Boost-bugs] [Boost C++ Libraries] #2428: [random] missing member initialization of generator_iterator ctor

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2428: [random] missing member initialization of generator_iterator ctor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-12-08 23:44:21


#2428: [random] missing member initialization of generator_iterator ctor
-----------------------------------------------------+----------------------
  Reporter: Johannes Brunen <JBrunen_at_[hidden]> | Owner: no-maintainer
      Type: Bugs | Status: new
 Milestone: Boost 1.37.0 | Component: random
   Version: Boost 1.36.0 | Severity: Problem
Resolution: | Keywords: generator_iterator default ctor
-----------------------------------------------------+----------------------
Changes (by dlwalker):

 * cc: dwalker07_at_[hidden] (added)

Comment:

 The author of the UUID library recently under review noticed this too; and
 made a copy of `generator_iterator` that adds explicit default-
 initialization for the generator pointer member. I realized that the
 cached value member also needs default initialization (which that author
 skipped). You mentioned comparisons with the generator pointer, but both
 members need it, as your code states, because both members will get
 compared when checking two end iterators. BTW, do the initializations
 need to be filled in with "0," or can nothing between the parentheses be
 used?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2428#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