mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 03:59:33 +00:00
epee: fix peer ids being truncated on display
This commit is contained in:
parent
a48ef0a65a
commit
feef1c6aac
1 changed files with 3 additions and 1 deletions
|
@ -188,8 +188,10 @@ POP_WARNINGS
|
|||
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;
|
||||
ss << std::hex << val;
|
||||
std::string s;
|
||||
|
|
Loading…
Reference in a new issue