In file included from /in/driver/main.cpp:5:0:
/in/hashtable.hpp: In instantiation of 'HashTable<Key, Value, Hash, KeyEqual>::Iterator HashTable<Key, Value, Hash, KeyEqual>::find(const Key&) [with Key = int; Value = int; Hash = std::hash<int>; KeyEqual = std::equal_to<int>]':
/in/driver/main.cpp:101:34: required from here
/in/hashtable.hpp:283:87: error: using temporary as lvalue [-fpermissive]
return Iterator(this, buckets.end(), buckets.begin()->before_begin()).endFlag = true;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/in/hashtable.hpp:283:89: error: could not convert '(HashTable<int, int, std::hash<int>, std::equal_to<int> >::Iterator(((HashTable<int, int, std::hash<int>, std::equal_to<int> >*)this), ((HashTable<int, int, std::hash<int>, std::equal_to<int> >*)this)->HashTable<int, int, std::hash<int>, std::equal_to<int> >::buckets.std::vector<std::forward_list<std::pair<const int, int>, std::allocator<std::pair<const int, int> > >, std::allocator<std::forward_list<std::pair<const int, int>, std::allocator<std::pair<const int, int> > > > >::end(), ((HashTable<int, int, std::hash<int>, std::equal_to<int> >*)this)->HashTable<int, int, std::hash<int>, std::equal_to<int> >::buckets.std::vector<std::forward_list<std::pair<const int, int>, std::allocator<std::pair<const int, int> > >, std::allocator<std::forward_list<std::pair<const int, int>, std::allocator<std::pair<const int, int> > > > >::begin().__gnu_cxx::__normal_iterator<std::forward_list<std::pair<const int, int>, std::allocator<std::pair<const int, int> > >*, std::vector<std::forward_list<std::pair<const int, int>, std::allocator<std::pair<const int, int> > >, std::allocator<std::forward_list<std::pair<const int, int>, std::allocator<std::pair<const int, int> > > > > >::operator->()->std::forward_list<std::pair<const int, int>, std::allocator<std::pair<const int, int> > >::before_begin()).HashTable<int, int, std::hash<int>, std::equal_to<int> >::Iterator::endFlag = true)' from 'bool' to 'HashTable<int, int, std::hash<int>, std::equal_to<int> >::Iterator'
return Iterator(this, buckets.end(), buckets.begin()->before_begin()).endFlag = true;
^~~~