id summary reporter owner description type status milestone component version severity resolution keywords cc 9665 multiIndex hashed_non_unique insert(first, last) compile error thomasfannes@… Joaquín M López Muñoz "Hello, I have a multiIndex map with one index, a hashed_non_unique. If I do an insert with a range where the iterator does not yield a reference, it will not compile. The insert function calls the final_insert_ref_, which accepts a reference. ---- {{{ typedef boost::adjacency_list graph; typedef boost::graph_traits::vertex_descriptor vertex_descriptor; typedef boost::multi_index_container< vertex_descriptor, boost::multi_index::indexed_by< boost::multi_index::hashed_non_unique > > > container; container c; graph g; c.insert(boost::vertices(g).first, boost::vertices(g).second); }}} Gives the following error: {{{ /usr/include/boost/multi_index/hashed_index.hpp:320: error: no matching function for call to 'boost::multi_index::detail::hashed_index, boost::hash, std::equal_to, boost::multi_index::detail::nth_layer<1, long unsigned int, boost::multi_index::indexed_by > >, std::allocator >, boost::mpl::vector0, boost::multi_index::detail::hashed_non_unique_tag>::final_insert_ref_(boost::iterator_facade, long unsigned int, boost::random_access_traversal_tag, long unsigned int, long int>::reference)' for(;first!=last;++first)this->final_insert_ref_(*first); ^ }}} " Bugs closed To Be Determined multi_index Boost 1.55.0 Problem fixed