File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 30
30
31
31
也可以在 [ B 站] ( https://space.bilibili.com/263032155 ) 发私信给小彭老师哦。
32
32
33
- > {{ icon.tip }} 本书还在持续更新中……要追番的话,可以在 [ GitHub] ({{ config.repo_url }}) 点一下右上角的 “Watch” 按钮,每当小彭老师提交新 commit,GitHub 会向你发送一峰电子邮件 ,提醒你小彭老师更新了。
33
+ > {{ icon.tip }} 本书还在持续更新中……要追番的话,可以在 [ GitHub] ({{ config.repo_url }}) 点一下右上角的 “Watch” 按钮,每当小彭老师提交新 commit,GitHub 会向你发送一封电子邮件 ,提醒你小彭老师更新了。
34
34
35
35
更新时间:{{ build_date }}
36
36
@@ -160,7 +160,7 @@ void try_call_foo(T &) {
160
160
}
161
161
```
162
162
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 成员变量为编译期常量,我们只好又用一个抽象的枚举小技巧来实现定义类成员常量的效果。
164
164
165
165
``` cpp
166
166
template <class T , class = void>
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ void try_call_foo(T &) {
211
211
}
212
212
```
213
213
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 成员变量为编译期常量,我们只好又用一个抽象的枚举小技巧来实现定义类成员常量的效果。
215
215
216
216
```cpp
217
217
template <class T, class = void>
You can’t perform that action at this time.
0 commit comments