Boost logo

Boost Users :

Subject: Re: [Boost-users] Compilation Error in Boost::unordered_detail::hash_table on boost 1_46_1
From: koval (koval.gnu_at_[hidden])
Date: 2011-09-27 05:51:03

I had the same problem with 1_47_0
Changed boost/unordered/detail/table.hpp file in the following way

template <class T>
    template <class Key, class Pred>
    inline BOOST_DEDUCED_TYPENAME hash_table<T>::node_ptr
        hash_table<T>::find_iterator(bucket_ptr bucket, Key const& k,
            Pred const& eq) const


template <class T>
    template &lt;class Key, class Hash, class Pred&gt;
    BOOST_DEDUCED_TYPENAME hash_table<T>::iterator_base
hash_table<T>::find(Key const& k,
        Hash const& h, Pred const& eq) const

in both cases the return type was taken out of T, after taking it out of
hash_table<T> SunCC compiles the code.
Strange enough, non-template versions of both functions work with T::

I used Sun Studio 12 (not the 12.2 update) under Solaris 5.9
I also have access to Sun Studio 12 and update 12.2 on Solaris 5.10 (both
I use apache stdcxx 4.2.1 (I find it more standard-compliant without using
strange macros _STLP_xxxx than STLport and better fitting the compiler - it
completely replaces built-in libCstd, even exception and typeinfo headers)

View this message in context:
Sent from the Boost - Users mailing list archive at

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at