Originariamente inviato da MItaly
No, non fraintendermi, il const è buono e giusto, è che secondo me lo devi lasciare stare per quanto riguarda il parametro template della struct.
Ho tolto tutti quelli riguardanti quella funzione, ovvero il necessario per farlo compilare, ora il compile va ma se tento di eseguirlo crasha.
Ho provato a mettercelo tutto su ideone.com:
http://www.ideone.com/hgl1Q
e mi da i seguenti errori:
codice:
/home/aLq6T8/ccSpDBXf.o:(.rodata._ZTV10hash_tableISsiE[vtable for hash_table<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int>]+0x24): undefined reference to `hash_table<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int>::erase(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/aLq6T8/ccSpDBXf.o:(.rodata._ZTV10hash_tableISsiE[vtable for hash_table<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int>]+0x28): undefined reference to `hash_table<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int>::modify(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int const&)'
collect2: ld returned 1 exit status
A questo punto cos'altro è che lo fa impazzire? il mio compilatore manco ne segnala errori! (eclipse + mingw)