Opened 13 years ago

Closed 13 years ago

#3719 closed Bugs (fixed)

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:

Description

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 (5)

comment:1 by Marshall Clow, 13 years ago

Owner: changed from No-Maintainer to Marshall Clow

I can fix this one.

comment:2 by Marshall Clow, 13 years ago

Status: newassigned

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

comment:3 by Steven Watanabe, 13 years ago

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 by Marshall Clow, 13 years ago

Owner: changed from Marshall Clow to Steven Watanabe
Status: assignednew

comment:5 by Steven Watanabe, 13 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.