hash_map

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

g++ 4.4.7版本,大致是ext/hash_map不再属标准C++,将会过期,或在新的版本中被遗弃

查到以下一句话:

c++11标准里已经有unordered_map,实际上就是hash_map,为了避免名字重复用了那个名字,hash_map是非标准的。

1如果坚持要hash_map的话,可以在GCC C++ Compiler 的 g++ 杂项的编译参数加入 -Wno-deprecated。

相关文章:

  • 2022-12-23
  • 2022-01-13
  • 2021-11-07
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-01-30
  • 2021-04-27
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-04-18
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案