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

and

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
sparc/x86)
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: http://boost.2283326.n4.nabble.com/Compilation-Error-in-Boost-unordered-detail-hash-table-on-boost-1-46-1-tp3635890p3846645.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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