Merge pull request #6120

feef1c6a epee: fix peer ids being truncated on display (moneromooo-monero)
This commit is contained in:
Alexander Blair 2020-01-16 17:30:17 -08:00
commit fe736070d2
No known key found for this signature in database
GPG Key ID: C64552D877C32479

View File

@ -188,8 +188,10 @@ POP_WARNINGS
return boost::lexical_cast<std::string>(val); return boost::lexical_cast<std::string>(val);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
inline std::string to_string_hex(uint32_t val) template<typename T>
inline std::string to_string_hex(const T &val)
{ {
static_assert(std::is_arithmetic<T>::value, "only arithmetic types");
std::stringstream ss; std::stringstream ss;
ss << std::hex << val; ss << std::hex << val;
std::string s; std::string s;