Skip to content

Commit 3761f39

Browse files
committed
Avoid Wshadow warnings in some older GCCs
1 parent 35316d6 commit 3761f39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/boost/interprocess/indexes/flat_map_index.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ class flat_map_index
6767
typedef flat_map_index_aux<MapConfig> index_aux;
6868
typedef typename index_aux::index_t base_type;
6969
typedef typename index_aux::
70-
segment_manager_base segment_manager_base;
70+
segment_manager_base segment_manager_base;
7171
typedef typename base_type::key_type key_type;
72+
typedef typename base_type::mapped_type mapped_type;
7273
#endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
7374

7475
public:
@@ -104,7 +105,6 @@ class flat_map_index
104105
(const compare_key_type &k, void *context, index_data_t&, insert_commit_data& )
105106
{
106107
//Now commit the insertion using previous context data
107-
typedef typename base_type::mapped_type mapped_type;
108108
return this->base_type::insert(value_type(key_type(k.str(), k.len()), mapped_type(context))).first;
109109
}
110110

include/boost/interprocess/indexes/map_index.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class map_index
7070
typedef typename MapConfig::
7171
segment_manager_base segment_manager_base;
7272
typedef typename base_type::key_type key_type;
73+
typedef typename base_type::mapped_type mapped_type;
7374

7475
#endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
7576

@@ -114,7 +115,6 @@ class map_index
114115
(const compare_key_type &k, void *context, index_data_t &index_data, insert_commit_data& )
115116
{
116117
//Now commit the insertion using previous context data
117-
typedef typename base_type::mapped_type mapped_type;
118118
iterator it = this->base_type::insert(value_type(key_type(k.str(), k.len()), mapped_type(context))).first;
119119
return (index_data = it);
120120
}

0 commit comments

Comments
 (0)