Ticket #7375 (closed Patches: fixed)

Opened 5 years ago

Last modified 5 years ago

seed_rng.hpp gives warning on gcc 4.1.2

Reported by: Leonid Gershanovich <gleonid@…> Owned by: atompkins
Milestone: To Be Determined Component: uuid
Version: Boost 1.51.0 Severity: Problem
Keywords: Cc:


I am getting a warning in default generator_iterator ctor.

template <class Generator>
class generator_iterator

: public iterator_facade<


, typename Generator::result_type
, single_pass_traversal_tag
, typename Generator::result_type const&



generator_iterator() : m_g(NULL) {}
generator_iterator(Generator* g) : m_g(g), m_value((*m_g)()) {}



Generator* m_g;
typename Generator::result_type m_value;


Depending on resulting type of "typename Generator::result_type" it is possible that m_value member remains uninitialized when object created via default ctor.

Please consider attached patch.


seed_rng.hpp.1_46_1.patch (474 bytes) - added by Leonid Gershanovich <gleonid@…> 5 years ago.
patch for boost/uuid/seed_rng.hpp

Change History

Changed 5 years ago by Leonid Gershanovich <gleonid@…>

patch for boost/uuid/seed_rng.hpp

comment:1 Changed 5 years ago by andysem

I'm havind the same warning with GCC 4.7. What's the status of this ticket?

comment:2 Changed 5 years ago by atompkins

  • Status changed from new to closed
  • Resolution set to fixed

checked in release - changeset #80846


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.