When compiling with -Wshadow enabled, GCC 8 complains:
libcuckoo/cuckoohash_map.hh:1369:23: warning: declaration of ‘bucket’ shadows a previous local [-Wshadow]
const size_type bucket = cuckoo_path[0].bucket;
^~
libcuckoo/cuckoohash_map.hh:1002:44: note: shadowed declaration is here
using bucket = typename buckets_t::bucket;
^
This commit renames "bucket" to "bucket_i" within cuckoopath_move() to silence
this warning.
When compiling with -Wshadow enabled, GCC 8 complains: libcuckoo/cuckoohash_map.hh:1369:23: warning: declaration of ‘bucket’ shadows a previous local [-Wshadow] const size_type bucket = cuckoo_path[0].bucket; ^
~libcuckoo/cuckoohash_map.hh:1002:44: note: shadowed declaration is here using bucket = typename buckets_t::bucket; ^ This commit renames "bucket" to "bucket_i" within cuckoopath_move() to silence this warning.Closes: #104