mirror of
https://github.com/monero-project/monero.git
synced 2025-08-23 13:25:04 -04:00
Split epee/string_tools.h and encapsulate boost::lexical_cast
This commit is contained in:
parent
e45619e61e
commit
dc81e23e60
29 changed files with 733 additions and 496 deletions
|
@ -47,7 +47,7 @@
|
|||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <ctime>
|
||||
|
||||
#pragma once
|
||||
namespace epee
|
||||
|
@ -115,15 +115,7 @@ namespace misc_utils
|
|||
|
||||
}
|
||||
|
||||
|
||||
inline std::string get_thread_string_id()
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
return boost::lexical_cast<std::string>(GetCurrentThreadId());
|
||||
#elif defined(__GNUC__)
|
||||
return boost::lexical_cast<std::string>(pthread_self());
|
||||
#endif
|
||||
}
|
||||
std::string get_thread_string_id();
|
||||
|
||||
inline bool get_gmt_time(time_t t, struct tm &tm)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue