Boost logo

Boost Users :

Subject: [Boost-users] (1.43) unordered_map compile error with Sun CC 12
From: Anand Subramanian (agsubrama_at_[hidden])
Date: 2010-07-09 16:27:05


I am getting the following compilation error when using 1.43 version of
unordered_map.

$ CC -I<BOOST_INCLUDE_DIR> main.cpp -library=stlport4

"<BOOST_INCLUDE_DIR>/boost/unordered/detail/table.hpp", line 38: Error:
Could not find a match for
boost::unordered_detail::hash_table<boost::unordered_detail::T>::find_iterator<boost::unordered_detail::hash_table<boost::unordered_detail::T>::Key,
boost::unordered_detail::hash_table<boost::unordered_detail::T>::Pred>(boost::unordered_detail::T::bucket_ptr,
const boost::unordered_detail::Key&, const boost::unordered_detail::Pred&)
const.
"<BOOST_INCLUDE_DIR>/boost/unordered/detail/table.hpp", line 38: Error: Too
many args in template, from boost::unordered_detail::Pred on ignored.
"<BOOST_INCLUDE_DIR>/boost/unordered/detail/table.hpp", line 595: Error:
Could not find a match for
boost::unordered_detail::hash_table<boost::unordered_detail::T>::find(const
boost::unordered_detail::Key&, const boost::unordered_detail::Hash&, const
boost::unordered_detail::Pred&) const.
"<BOOST_INCLUDE_DIR>/boost/unordered/detail/table.hpp", line 595: Error: Too
many args in template, from boost::unordered_detail::Hash on ignored.
4 Error(s) detected.

$ cat main.cpp

#include <boost/unordered_map.hpp>
int main() {}

The same code compiles using boost 1.38. Is there any idea on what the issue
is?

-- 
Anand


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net