debug_utils: Add using std::literals

- Remove using namespace literals where it explicitly includes
cryptonote_config. There's still duplicates but implicitly.
This commit is contained in:
Doyle 2020-09-02 15:13:12 +10:00
parent 3f0f7f2d36
commit cdd1bbe616
4 changed files with 2 additions and 5 deletions

View File

@ -6,8 +6,6 @@
namespace blocks
{
using namespace std::literals;
template <cryptonote::network_type Network> std::string_view checkpoint_data() { return ""sv; }
template<> std::string_view checkpoint_data<cryptonote::network_type::MAINNET>();
template<> std::string_view checkpoint_data<cryptonote::network_type::DEVNET>();

View File

@ -39,6 +39,8 @@
#include <array>
#include <ratio>
using namespace std::literals;
#define CRYPTONOTE_MAX_BLOCK_NUMBER 500000000
#define CRYPTONOTE_MAX_TX_SIZE 1000000
#define CRYPTONOTE_MAX_TX_PER_BLOCK 0x10000000
@ -189,7 +191,6 @@ static_assert(STAKING_PORTIONS % 12 == 0, "Use a multiple of twelve, so that it
// New constants are intended to go here
namespace config
{
using namespace std::literals;
inline constexpr auto DNS_TIMEOUT = 20s;
inline constexpr uint64_t DEFAULT_FEE_ATOMIC_XMR_PER_KB = 500; // Just a placeholder! Change me!

View File

@ -49,7 +49,6 @@ namespace quorumnet {
namespace {
using namespace service_nodes;
using namespace std::literals;
using namespace lokimq;
using blink_tx = cryptonote::blink_tx;

View File

@ -68,7 +68,6 @@ using namespace tools::wallet_rpc;
namespace
{
using namespace std::literals;
constexpr auto DEFAULT_AUTO_REFRESH_PERIOD = 20s;
const command_line::arg_descriptor<uint16_t, true> arg_rpc_bind_port = {"rpc-bind-port", "Sets bind port for server"};