Ignore:
Timestamp:
04/25/24 15:05:23 (2 months ago)
Author:
jderouillat
Message:

Delete boost dependencies, the few features used are replaced by functions stored in extern/boost_extraction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/utils.hpp

    r2177 r2629  
    185185      return hash; 
    186186    } 
    187  
     187     
    188188    static inline size_t hash_combine(size_t seed, const T& value) 
    189189    { 
     
    193193 
    194194  }; 
     195   
     196  struct pair_xios_hash { 
     197    template <class T> 
     198    std::size_t operator () (const std::pair<T,T> &p) const 
     199    { 
     200      const std::vector<T> hash_vec = {p.first, p.second}; 
     201      return HashAlgorithm<T>::boost_hash(hash_vec ); 
     202    } 
     203  }; 
     204 
    195205 
    196206  template<typename T, typename Algo = Int2Type<0> > 
Note: See TracChangeset for help on using the changeset viewer.