Ticket #34378: patch-hashset-dependent-template.diff

File patch-hashset-dependent-template.diff, 1.3 KB (added by gallafent, 12 years ago)

Minimal patch to fix build with clang (4.0 in my case)

  • kjs/wtf/HashSet.h

    old new  
    181181    inline HashSet<Value, HashFunctions, Traits>::find(const T& value)
    182182    {
    183183        typedef HashSetTranslatorAdapter<ValueType, ValueTraits, T, Translator> Adapter;
    184         return m_impl.find<T, Adapter>(value);
     184        return m_impl.template find<T, Adapter>(value);
    185185    }
    186186
    187187    template<typename Value, typename HashFunctions, typename Traits>
     
    190190    inline HashSet<Value, HashFunctions, Traits>::find(const T& value) const
    191191    {
    192192        typedef HashSetTranslatorAdapter<ValueType, ValueTraits, T, Translator> Adapter;
    193         return m_impl.find<T, Adapter>(value);
     193        return m_impl.template find<T, Adapter>(value);
    194194    }
    195195
    196196    template<typename Value, typename HashFunctions, typename Traits>
     
    198198    inline bool HashSet<Value, HashFunctions, Traits>::contains(const T& value) const
    199199    {
    200200        typedef HashSetTranslatorAdapter<ValueType, ValueTraits, T, Translator> Adapter;
    201         return m_impl.contains<T, Adapter>(value);
     201        return m_impl.template contains<T, Adapter>(value);
    202202    }
    203203
    204204    template<typename T, typename U, typename V>