Opened 13 years ago
Closed 13 years ago
#3719 closed Bugs (fixed)
shadowed member warning in random library
| Reported by: | 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 , 13 years ago
| Owner: | changed from to |
|---|
comment:2 by , 13 years ago
| Status: | new → assigned |
|---|
Fixed on trunk in [58148]. I will wait for the tests to cycle, and then merge to release.
comment:3 by , 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 , 13 years ago
| Owner: | changed from to |
|---|---|
| Status: | assigned → new |
comment:5 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |

I can fix this one.