Skip to content

Commit 8e45e2d

Browse files
committed
deploy: 254d0ed
1 parent 17081c5 commit 8e45e2d

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ <h2 id="_1">前言</h2>
292292
<blockquote>
293293
<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>
294294
</blockquote>
295-
<p>更新时间:2024年10月25日 12:54:18 (UTC+08:00)</p>
295+
<p>更新时间:2024年10月26日 15:16:22 (UTC+08:00)</p>
296296
<p><a href="https://parallel101.github.io/cppguidebook">在 GitHub Pages 浏览本书</a> | <a href="https://142857.red/book">在小彭老师自己维护的镜像上浏览本书</a></p>
297297
<h2 id="_2">格式约定</h2>
298298
<blockquote>

print_page/index.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ <h2 id="index-_1">前言</h2>
421421
<blockquote>
422422
<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>
423423
</blockquote>
424-
<p>更新时间:2024年10月25日 12:54:18 (UTC+08:00)</p>
424+
<p>更新时间:2024年10月26日 15:16:22 (UTC+08:00)</p>
425425
<p><a href="https://parallel101.github.io/cppguidebook">在 GitHub Pages 浏览本书</a> | <a href="https://142857.red/book">在小彭老师自己维护的镜像上浏览本书</a></p>
426426
<h2 id="index-_2">格式约定</h2>
427427
<blockquote>
@@ -6003,9 +6003,12 @@ <h2 id="type_rich_api-_60">&mdash;</h2>
60036003
</code></pre>
60046004
<pre><code class="language-cpp">struct Name : Typed&lt;Name, std::string&gt; {};
60056005

6006-
struct Meter : Typed&lt;Meter, double&gt; {};
6006+
struct Meter : Typed&lt;Meter, double&gt; {
6007+
using Typed&lt;Kilometer, double&gt;::Typed;
6008+
};
60076009

60086010
struct Kilometer : Typed&lt;Kilometer, double&gt; {
6011+
using Typed&lt;Kilometer, double&gt;::Typed;
60096012
operator Meter() const {
60106013
// 允许隐式转换为米
60116014
return Meter(value * 1000);

search/search_index.json

+1-1
Large diffs are not rendered by default.

sitemap.xml.gz

0 Bytes
Binary file not shown.

type_rich_api/index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -1793,9 +1793,12 @@ <h2 id="_60">&mdash;</h2>
17931793
</code></pre>
17941794
<pre><code class="language-cpp">struct Name : Typed&lt;Name, std::string&gt; {};
17951795

1796-
struct Meter : Typed&lt;Meter, double&gt; {};
1796+
struct Meter : Typed&lt;Meter, double&gt; {
1797+
using Typed&lt;Kilometer, double&gt;::Typed;
1798+
};
17971799

17981800
struct Kilometer : Typed&lt;Kilometer, double&gt; {
1801+
using Typed&lt;Kilometer, double&gt;::Typed;
17991802
operator Meter() const {
18001803
// 允许隐式转换为米
18011804
return Meter(value * 1000);

0 commit comments

Comments
 (0)