Avoid Wshadow warnings in some older GCCs

This commit is contained in:
Ion Gaztañaga
2024-10-08 00:05:28 +02:00
parent 35316d6249
commit 3761f39c32
2 changed files with 3 additions and 3 deletions

View File

@@ -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:
@@ -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;
}

View File

@@ -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
@@ -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);
}