#include <boost/graph/adjacency_list.hpp>

using namespace boost;

typedef adjacency_list <vecS, vecS, undirectedS> BoostGraph;
typedef graph_traits < BoostGraph >::vertex_descriptor vertex_t;

int main() {

    BoostGraph g;
    vertex_t v1 = add_vertex(g);
    vertex_t v2 = add_vertex(g);
    vertex_t v3 = add_vertex(g);

    return 0;
}

The above code doesn't seem to compile with Sun Studio 11, that is Sun C++ compiler 5.8 and boost 1.43
Here is the error:

"/home/renaudk/boost/boost_1_43_0/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>(bucket_ptr, const boost::unordered_detail::Key&, const boost::unordered_detail::Pred&) const.
"/home/renaudk/boost/boost_1_43_0/boost/unordered/detail/table.hpp", line 38: Error: Too many args in template, from boost::unordered_detail::Pred on ignored.
"/home/renaudk/boost/boost_1_43_0/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.
"/home/renaudk/boost/boost_1_43_0/boost/unordered/detail/table.hpp", line 595: Error: Too many args in template, from boost::unordered_detail::Hash on ignored.
4 Error(s) detected.

I have tried some of the switch I found in the forums such as  -library=stlport4 -features=tmplife -features=tmplrefstatic

But no luck.

Does anybody know the trick ?

Thanks.