This commit is contained in:
wendajiang 2023-05-06 06:20:30 +00:00
parent a516926297
commit 098fceafe5
4 changed files with 6 additions and 6 deletions

View File

@ -164,7 +164,7 @@ logAndAdd("Patty Dog"); //传递字符串字面值
<pre><code class="language-cpp">template&lt;typename T&gt;
void logAndAdd(T&amp;&amp; name)
{
auto now = std::chrono::system_lock::now();
auto now = std::chrono::system_clock::now();
log(now, &quot;logAndAdd&quot;);
names.emplace(std::forward&lt;T&gt;(name));
}
@ -181,7 +181,7 @@ logAndAdd(&quot;Patty Dog&quot;); //在multiset直接创建std::
void logAndAdd(int idx) //新的重载
{
auto now = std::chrono::system_lock::now();
auto now = std::chrono::system_clock::now();
log(now, &quot;logAndAdd&quot;);
names.emplace(nameFromIdx(idx));
}

View File

@ -3685,7 +3685,7 @@ logAndAdd(&quot;Patty Dog&quot;); //传递字符串字面值
<pre><code class="language-cpp">template&lt;typename T&gt;
void logAndAdd(T&amp;&amp; name)
{
auto now = std::chrono::system_lock::now();
auto now = std::chrono::system_clock::now();
log(now, &quot;logAndAdd&quot;);
names.emplace(std::forward&lt;T&gt;(name));
}
@ -3702,7 +3702,7 @@ logAndAdd(&quot;Patty Dog&quot;); //在multiset直接创建std::
void logAndAdd(int idx) //新的重载
{
auto now = std::chrono::system_lock::now();
auto now = std::chrono::system_clock::now();
log(now, &quot;logAndAdd&quot;);
names.emplace(nameFromIdx(idx));
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long