Skip to content

Commit 60cf6bc

Browse files
committed
deploy: 27925da
1 parent d1af6d3 commit 60cf6bc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ <h2 id="_1">前言</h2>
248248
<blockquote>
249249
<p><img src="./img/bulb.png" height="30px" width="auto" style="margin: 0; border: none"/> 本书还在持续更新中……要追番的话,可以在 <a href="https://github.com/parallel101/cppguidebook">GitHub</a> 点一下右上角的 “Watch” 按钮,每当小彭老师提交新 commit,GitHub 会向你发送一峰电子邮件,提醒你小彭老师更新了。</p>
250250
</blockquote>
251-
<p>更新时间:2024年08月14日 11:48:21 (UTC+08:00)</p>
251+
<p>更新时间:2024年08月14日 11:49:15 (UTC+08:00)</p>
252252
<h2 id="_2">格式约定</h2>
253253
<blockquote>
254254
<p><img src="./img/bulb.png" height="30px" width="auto" style="margin: 0; border: none"/> 用这种颜色字体书写的内容是温馨提示</p>
@@ -296,12 +296,12 @@ <h2 id="_4">举个例子</h2>
296296
<p>但仅仅是回到 C++17,没有 <code>requires</code> 语法,我们只能自己定义一个 trait 类,并运用烦人的 SFINAE 小技巧,检测表达式是否的合法,又臭又长。</p>
297297
<pre><code class="language-cpp">template &lt;class T, class = void&gt;
298298
struct has_foo {
299-
inline constexpr bool value = false;
299+
static constexpr bool value = false;
300300
};
301301

302302
template &lt;class T&gt;
303303
struct has_foo&lt;T, std::void_t&lt;decltype(std::declval&lt;T&gt;().foo())&gt;&gt; {
304-
inline constexpr bool value = true;
304+
static constexpr bool value = true;
305305
};
306306

307307
template &lt;class T&gt;

print_page/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ <h2 id="index-_1">前言</h2>
345345
<blockquote>
346346
<p><img src="../img/bulb.png" height="30px" width="auto" style="margin: 0; border: none"/> 本书还在持续更新中……要追番的话,可以在 <a href="https://github.com/parallel101/cppguidebook">GitHub</a> 点一下右上角的 “Watch” 按钮,每当小彭老师提交新 commit,GitHub 会向你发送一峰电子邮件,提醒你小彭老师更新了。</p>
347347
</blockquote>
348-
<p>更新时间:2024年08月14日 11:48:21 (UTC+08:00)</p>
348+
<p>更新时间:2024年08月14日 11:49:15 (UTC+08:00)</p>
349349
<h2 id="index-_2">格式约定</h2>
350350
<blockquote>
351351
<p><img src="../img/bulb.png" height="30px" width="auto" style="margin: 0; border: none"/> 用这种颜色字体书写的内容是温馨提示</p>
@@ -393,12 +393,12 @@ <h2 id="index-_4">举个例子</h2>
393393
<p>但仅仅是回到 C++17,没有 <code>requires</code> 语法,我们只能自己定义一个 trait 类,并运用烦人的 SFINAE 小技巧,检测表达式是否的合法,又臭又长。</p>
394394
<pre><code class="language-cpp">template &lt;class T, class = void&gt;
395395
struct has_foo {
396-
inline constexpr bool value = false;
396+
static constexpr bool value = false;
397397
};
398398

399399
template &lt;class T&gt;
400400
struct has_foo&lt;T, std::void_t&lt;decltype(std::declval&lt;T&gt;().foo())&gt;&gt; {
401-
inline constexpr bool value = true;
401+
static constexpr bool value = true;
402402
};
403403

404404
template &lt;class T&gt;

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)