Commit 02599859 authored by captainwong's avatar captainwong

fix

parent 7abda8b5
...@@ -40,7 +40,7 @@ thread_local const char* t_threadName = "unknown"; ...@@ -40,7 +40,7 @@ thread_local const char* t_threadName = "unknown";
inline void cacheTid() { inline void cacheTid() {
if (t_cachedTid == 0) { if (t_cachedTid == 0) {
t_cachedTid = detail::gettid(); t_cachedTid = detail::gettid();
t_tidStringLength = snprintf(t_tidString, sizeof(t_tidString), "%lld ", t_cachedTid); t_tidStringLength = snprintf(t_tidString, sizeof(t_tidString), "%llu ", t_cachedTid);
} }
} }
......
...@@ -21,7 +21,7 @@ inline bool is_contain(const C& c, const T& t) { ...@@ -21,7 +21,7 @@ inline bool is_contain(const C& c, const T& t) {
* @note All 和 Sub 必须为同样类型的容器 * @note All 和 Sub 必须为同样类型的容器
*/ */
template <class C> template <class C>
inline typename C get_other(const C & All, const C& Sub) { inline C get_other(const C & All, const C& Sub) {
typename C res, tmp; typename C res, tmp;
std::copy(Sub.begin(), Sub.end(), std::back_inserter(tmp)); std::copy(Sub.begin(), Sub.end(), std::back_inserter(tmp));
for (const auto& i : All) { for (const auto& i : All) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment