All pastes #348015 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-09 21:20 UTC
rendered paste body
'annotate.cc'
hashtable:1041 : error: too few template parameters -- does not match previous
          declaration
  template<typename K, typename Pair, typename Hashtable>
                                               ^
          detected during:
            instantiation of class "std::tr1::hashtable<Key, Value, Allocator,
                      ExtractKey, Equal, H1, H2, H, RehashPolicy,
                      cache_hash_code, constant_iterators, unique_keys> [with
                      Key=std::string, Value=std::pair<const std::string,
                      long>, Allocator=std::allocator<std::pair<const
                      std::string, long>>,
                      ExtractKey=Internal::extract1st<std::pair<const
                      std::string, long>>,
                      Equal=hashmap::equal_to<std::string>,
                      H1=hashmap::hash<std::string>,
                      H2=Internal::mod_range_hashing,
                      H=Internal::default_ranged_hash,
                      RehashPolicy=Internal::prime_rehash_policy,
                      cache_hash_code=false, constant_iterators=false,
                      unique_keys=true]" at line 56 of "unordered_map"
            instantiation of class "std::tr1::unordered_map<Key, T, Hash,
                      Pred, Alloc, cache_hash_code> [with Key=std::string,
                      T=long, Hash=hashmap::hash<std::string>,
                      Pred=hashmap::equal_to<std::string>,
                      Alloc=std::allocator<std::pair<const std::string,
                      long>>, cache_hash_code=false]" at line 63 of
                      "hash_map.hh"
            instantiation of class "hashmap::hash_map<_Key, _Value> [with
                      _Key=std::string, _Value=long]" at line 24 of
                      "interner.hh"
            instantiation of class "interner<T> [with T=long]" at line 150 of
                      "annotate.cc"