Próbuję użyć hash_map, zdefiniowaną w Android NDK, ale dostać "ostrzeżenie dezaprobata":Jak korzystać z opcji unordered_map w systemie Android?
ndk/sources/cxx-stl/gnu-libstdc++/4.6/include/ext/../backward/backward_warning.h:33:2:
error: #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. [-Werror=cpp]
A ponieważ "unordered_map" jest obecny w gnu-libstdC++/4,6/include /, a także w gnu-libstdC++/4.6/include/tr1 /, wierzę, że jest sposób na jego wykorzystanie.
Chodzi o to, że nie mogę go znaleźć. Który z poniższych jest właściwy (jeśli jest):
#include <tr1/unordered_map.h>
#include <unordered_map>
A następnie, jak z niego korzystać? __gnu_cxx :: unordered_map nie jest rozpoznawany ... i nie wiem, jak znaleźć tę informację.