Sto cercando di usare un hash_map, definito nel NDK Android, ma ottengo un "avvertimento disapprovazione":Come usare unordered_map in 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]
E poiché "unordered_map" è presente in GNU-libstdC++/4,6/include/e anche in gnu-libstdC++/4.6/include/tr1 /, credo che ci sia un modo per usarlo.
Il punto è che non riesco a trovarlo. Quale delle seguenti è quella giusta (se presente):
#include <tr1/unordered_map.h>
#include <unordered_map>
E quindi, come si usa? __gnu_cxx :: unordered_map non è riconosciuto ... e non so come trovare questa informazione.