Opened 8 years ago

Closed 5 years ago

#11171 closed Bugs (wontfix)

boost::unordered_multimap doesn't work with gcc3.4.5

Reported by: jrjbear@… Owned by: Daniel James
Milestone: To Be Determined Component: unordered
Version: Boost 1.56.0 Severity: Problem
Keywords: SFINAE under GCC 3.4.5 Cc:

Description

#include <boost/unordered_map> int main(int argc, char* argv[]) {

boost::unordered_multimap<int, double> m; compile error!

}

../third-64/boost/include/boost/unordered/detail/equivalent.hpp:507: error: template<class I> typename boost::unordered::detail::disable_if_forward<I, void>::type boost::unordered::detail::grouped_table_impl::insert_range(I, I) [with I = I, Types = boost::unordered::detail::multimap<std::allocator<std::pair<const int, double> >, int, double, boost::hash<int>, std::equal_to<int> >]' and template<class I> typename boost::unordered::detail::enable_if_forward<I, void>::type boost::unordered::detail::grouped_table_impl::insert_range(I, I) [with I = I, Types = boost::unordered::detail::multimap<std::allocator<std::pair<const int, double> >, int, double, boost::hash<int>, std::equal_to<int> >]' cannot be overloaded

It seems GCC 3.4.5 doesn't support SFINAE very well on function insert_range' in unordered/detail/equivalent.hpp'.

Change History (1)

comment:1 by Daniel James, 5 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.