Skip to content

Commit b524d17

Browse files
authored
Merge pull request #26 from Geckoops/patch1
fix typo
2 parents 27925da + 2aa0b45 commit b524d17

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
也可以在 [B 站](https://space.bilibili.com/263032155) 发私信给小彭老师哦。
3232

33-
> {{ icon.tip }} 本书还在持续更新中……要追番的话,可以在 [GitHub]({{ config.repo_url }}) 点一下右上角的 “Watch” 按钮,每当小彭老师提交新 commit,GitHub 会向你发送一峰电子邮件,提醒你小彭老师更新了。
33+
> {{ icon.tip }} 本书还在持续更新中……要追番的话,可以在 [GitHub]({{ config.repo_url }}) 点一下右上角的 “Watch” 按钮,每当小彭老师提交新 commit,GitHub 会向你发送一封电子邮件,提醒你小彭老师更新了。
3434
3535
更新时间:{{ build_date }}
3636

@@ -160,7 +160,7 @@ void try_call_foo(T &) {
160160
}
161161
```
162162

163-
如果回到 C++98,那又要罪加一等!`enable_if` 和 是 C++11 引入的 `<type_traits>` 头文件的帮手类,在 C++98 中,我们需要自己实现 `enable_if`…… `declval` 也是 C++11 引入的 `<utility>` 头文件中的帮手函数……假设你自己好不容易实现出来了 `enable_if``declval`,还没完:因为 constexpr 在 C++98 中也不存在了!你无法定义 value 成员变量为编译期常量,我们只好又用一个抽象的枚举小技巧来实现定义类成员常量的效果。
163+
如果回到 C++98,那又要罪加一等!`enable_if``declval` 是 C++11 引入的 `<type_traits>` 头文件的帮手类和帮手函数,在 C++98 中,我们需要自己实现 `enable_if`…… `declval` 也是 C++11 引入的 `<utility>` 头文件中的帮手函数……假设你自己好不容易实现出来了 `enable_if``declval`,还没完:因为 constexpr 在 C++98 中也不存在了!你无法定义 value 成员变量为编译期常量,我们只好又用一个抽象的枚举小技巧来实现定义类成员常量的效果。
164164

165165
```cpp
166166
template <class T, class = void>

misc/typst/cppguidebook.typ

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void try_call_foo(T &) {
211211
}
212212
```
213213
214-
如果回到 C++98,那又要罪加一等!`enable_if` 和 是 C++11 引入的 `<type_traits>` 头文件的帮手类,在 C++98 中,我们需要自己实现 `enable_if`…… `declval` 也是 C++11 引入的 `<utility>` 头文件中的帮手函数……假设你自己好不容易实现出来了 `enable_if` 和 `declval`,还没完:因为 constexpr 在 C++98 中也不存在了!你无法定义 value 成员变量为编译期常量,我们只好又用一个抽象的枚举小技巧来实现定义类成员常量的效果。
214+
如果回到 C++98,那又要罪加一等!`enable_if` 和 `declval` 是 C++11 引入的 `<type_traits>` 头文件的帮手类,在 C++98 中,我们需要自己实现 `enable_if`…… `declval` 也是 C++11 引入的 `<utility>` 头文件中的帮手函数……假设你自己好不容易实现出来了 `enable_if` 和 `declval`,还没完:因为 constexpr 在 C++98 中也不存在了!你无法定义 value 成员变量为编译期常量,我们只好又用一个抽象的枚举小技巧来实现定义类成员常量的效果。
215215
216216
```cpp
217217
template <class T, class = void>

0 commit comments

Comments
 (0)