Skip to content

Commit

Permalink
Avoid Wshadow warnings in some older GCCs
Browse files Browse the repository at this point in the history
  • Loading branch information
igaztanaga committed Oct 7, 2024
1 parent 35316d6 commit 3761f39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/boost/interprocess/indexes/flat_map_index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ class flat_map_index
typedef flat_map_index_aux<MapConfig> index_aux;
typedef typename index_aux::index_t base_type;
typedef typename index_aux::
segment_manager_base segment_manager_base;
segment_manager_base segment_manager_base;
typedef typename base_type::key_type key_type;
typedef typename base_type::mapped_type mapped_type;
#endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED

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

Expand Down
2 changes: 1 addition & 1 deletion include/boost/interprocess/indexes/map_index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class map_index
typedef typename MapConfig::
segment_manager_base segment_manager_base;
typedef typename base_type::key_type key_type;
typedef typename base_type::mapped_type mapped_type;

#endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED

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

0 comments on commit 3761f39

Please sign in to comment.