[Solved] Implementation of hash_multimap in C++


The problems seem pretty straightforward.

  • warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.

Track down the deprecated header, and look for upgraded packages, libraries, etc. Otherwise, hand-edit the code to update the deprecated header.

  • main.cpp: In member function ‘bool eqstr::operator()(const char*, const char*) const’:
    main.cpp:10: error: ‘strcmp’ was not declared in this scope

Declare it. Probably by including string.h

  • main.cpp:15: error: expected initializer before ‘<’ token

A bit less clear, but will probably become clearer as you fix earlier problems. Track down exactly which < is creating the error, and begin carefully reviewing the definitions of hash_multimap and hash

Where exactly are you having problems?

solved Implementation of hash_multimap in C++