In file included from /in/driver/main.cpp:5:0:
/in/hashtable.hpp: In instantiation of 'size_t HashTable<Key, Value, Hash, KeyEqual>::findMinimumBucketSize(size_t) const [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>; size_t = long unsigned int]':
/in/hashtable.hpp:416:43: required from 'void HashTable<Key, Value, Hash, KeyEqual>::rehash(size_t) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>; size_t = long unsigned int]'
/in/hashtable.hpp:200:15: required from 'void HashTable<Key, Value, Hash, KeyEqual>::rehashCheck() [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>]'
/in/hashtable.hpp:358:24: required from 'bool HashTable<Key, Value, Hash, KeyEqual>::erase(const Key&) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>]'
/in/driver/main.cpp:120:35: required from here
/in/hashtable.hpp:177:91: error: passing 'const HashTable<int, int, std::hash<int>, std::equal_to<int> >' as 'this' argument discards qualifiers [-fpermissive]
if(HashPrime::g_a_sizes[i]>=bucketSize&&HashPrime::g_a_sizes[i]>= getValidSize(bucketSize))
~~~~~~~~~~~~^~~~~~~~~~~~
/in/hashtable.hpp:184:12: note: in call to 'size_t HashTable<Key, Value, Hash, KeyEqual>::getValidSize(size_t) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>; size_t = long unsigned int]'
size_t getValidSize(size_t bucketSize){
^~~~~~~~~~~~