#9373 closed Bugs (fixed)
g++ 4.7 -Wshadow warnings need attention
Reported by: | Owned by: | Joaquín M López Muñoz | |
---|---|---|---|
Milestone: | To Be Determined | Component: | multi_index |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Following are warnings from g++ 4.7
boost/multi_index/detail/bucket_array.hpp:101:66: warning: declaration of 'size' shadows a member of 'this' [-Wshadow]
boost/multi_index/hashed_index.hpp:1100:23: warning: declaration of 'prev' shadows a member of 'this' [-Wshadow]
boost/multi_index_container.hpp:461:41: warning: declaration of 'index' shadows a member of 'this' [-Wshadow]
boost/multi_index_container.hpp:480:41: warning: declaration of 'index' shadows a member of 'this' [-Wshadow]
boost/multi_index_container.hpp:515:39: warning: declaration of 'index' shadows a member of 'this' [-Wshadow]
boost/multi_index_container.hpp:533:39: warning: declaration of 'index' shadows a member of 'this' [-Wshadow]
Change History (5)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
I am working on it: I have to get set up for testing Boost and I've never done it before.
follow-up: 4 comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 by , 9 years ago
From #9374
This is a standard C++ idiom and does not make sense to change.
... in some places, of course.
Hi Tom,
Can you run the whole Boost.MultiIndex test suite and provide the full list of shadow warnings found? I guess there's going to be more than listed here. Thank you.