diff --git a/include/boost/interprocess/indexes/flat_map_index.hpp b/include/boost/interprocess/indexes/flat_map_index.hpp index 72eeec17..5e2ea7cf 100644 --- a/include/boost/interprocess/indexes/flat_map_index.hpp +++ b/include/boost/interprocess/indexes/flat_map_index.hpp @@ -67,8 +67,9 @@ class flat_map_index typedef flat_map_index_aux 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; } diff --git a/include/boost/interprocess/indexes/map_index.hpp b/include/boost/interprocess/indexes/map_index.hpp index 75eea525..7a82457d 100644 --- a/include/boost/interprocess/indexes/map_index.hpp +++ b/include/boost/interprocess/indexes/map_index.hpp @@ -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); }