According to the "Source code organization" section in Developer notes, using namespace should be avoided. This commit removes all uses of using namespace <xxx> in all source files, including test and bench related files, as well as the .univalue library
This PR is being split into multiple PR's as described below.
bench and test (#9281):
bench/bench.cpp: benchmark
bench/coin_selection.cpp: std
test/addrman_tests.cpp: std
test/bloom_tests.cpp: std
test/dbwrapper_tests.cpp: std [namespace boost::filesystem mapped to io for brevity]
test/hash_tests.cpp: std [unused]
test/key_tests.cpp: std
test/multisig_tests.cpp: std
test/net_tests.cpp: std
test/netbase_tests.cpp: std
test/pmt_tests.cpp: std [unused]
test/pow_tests.cpp: std [unused]
test/rpc_tests.cpp: std
test/script_P2SH_tests.cpp: std
test/script_tests.cpp: std
test/serialize_tests.cpp: std
test/sigopcount_tests.cpp: std
test/streams_tests.cpp: std [using boost::assign remains, for +=() operator]
test/timedata_tests.cpp: std [unused]
test/transaction_tests.cpp: std
test/univalue_tests.cpp: std
test/util_tests.cpp: std [unused]
rpc and script (#9476):
rpc/blockchain.cpp: std
rpc/client.cpp: std
rpc/mining.cpp: std
rpc/misc.cpp: std
rpc/net.cpp: std
rpc/protocol.cpp: std
rpc/rawtransaction.cpp: std
rpc/server.cpp: RPCServer [unused], std
script/interpreter.cpp: std
script/ismine.cpp: std
script/script.cpp: std
script/sign.cpp: std
script/standard.cpp: std
wallet and util* (#9643):
util.cpp: std
utilmoneystr.cpp: std
utilstrencodings.cpp: std
utiltime.cpp: std [unused]
wallet/db.cpp: std
wallet/rpcdump.cpp: std
wallet/rpcwallet.cpp: std
wallet/test/wallet_tests.cpp: std
wallet/wallet.cpp: std
wallet/walletdb.cpp: std
Remaining (#9644):
bloom.cpp: std
chain.cpp: std [unused]
core_read.cpp: std
core_write.cpp: std
init.cpp: std, boost::filesystem [inside void CleanupBlockRevFiles()]
merkleblock.cpp: std
miner.cpp: std
net_processing.cpp: std
rest.cpp: std
timedata.cpp: std
txdb.cpp: std
txmempool.cpp: std
validation.cpp: std