Ticket #3719 (closed Bugs: fixed)

Opened 7 years ago

Last modified 6 years ago

shadowed member warning in random library

Reported by: nathan.brewton@… Owned by: steven_watanabe
Milestone: Boost 1.42.0 Component: random
Version: Boost 1.40.0 Severity: Problem
Keywords: warnings Cc:


When including boost/random/additive_combine.hpp a warning is issued with compiling with gcc and -Wshadow:

In file included from mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random.hpp:37,

from test/test.cpp:16:

mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp: In constructor 'boost::random::additive_combine<MLCG1, MLCG2, val>::additive_combine(typename MLCG1::result_type)': mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp:58: warning: declaration of 'seed' shadows a member of 'this' mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp: In member function 'void boost::random::additive_combine<MLCG1, MLCG2, val>::seed(typename MLCG1::result_type)': mathworks/hub/3rdparty/R2010b/147024/glnxa64/boost/include/boost/random/additive_combine.hpp:69: warning: declaration of 'seed' shadows a member of 'this'


Change History

comment:1 Changed 7 years ago by marshall

  • Owner changed from no-maintainer to marshall

I can fix this one.

comment:2 Changed 7 years ago by marshall

  • Status changed from new to assigned

Fixed on trunk in [58148]. I will wait for the tests to cycle, and then merge to release.

comment:3 Changed 7 years ago by steven_watanabe

I think there are a few other changes that need to be merged. I was going to take care of them, but svn:mergeinfo at the root got clobbered and I don't really feel like trying to work it out manually right now.

comment:4 Changed 7 years ago by marshall

  • Owner changed from marshall to steven_watanabe
  • Status changed from assigned to new

comment:5 Changed 6 years ago by steven_watanabe

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

(In [58649]) Merge Random from the trunk. Fixes #3719


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.