diff options
author | mj-xmr <mjxmr@protonmail.com> | 2020-11-12 19:14:32 +0100 |
---|---|---|
committer | mj-xmr <mjxmr@protonmail.com> | 2021-04-16 20:54:20 +0200 |
commit | dc81e23e60f6539b5d273bd42024e765b6cdf2d5 (patch) | |
tree | 32229c8c475a3a3f73dec63cf36a57c00e768e39 /contrib/epee/include/misc_os_dependent.h | |
parent | Revert "Merge pull request #7136" (diff) | |
download | monero-dc81e23e60f6539b5d273bd42024e765b6cdf2d5.tar.xz |
Split epee/string_tools.h and encapsulate boost::lexical_cast
Diffstat (limited to '')
-rw-r--r-- | contrib/epee/include/misc_os_dependent.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/contrib/epee/include/misc_os_dependent.h b/contrib/epee/include/misc_os_dependent.h index 5fffde8d5..522cdf263 100644 --- a/contrib/epee/include/misc_os_dependent.h +++ b/contrib/epee/include/misc_os_dependent.h @@ -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) { |