Commit Graph

42 Commits

Author SHA1 Message Date
Changkun Ou
e5d90bd610 book, code: add mutex header
Fixes #217
2021-12-03 15:30:07 +01:00
Changkun Ou
e202554f16 book: import correct header
Fixes #192
Fixes #147
2021-08-11 12:33:44 +02:00
Changkun Ou
d472ff1421 book: add text about auto as func args
Fixes #180
2021-08-11 11:20:57 +02:00
Changkun Ou
0f8819f4f9 book: remove nullptr 0L condition
This is a bug introduced in #132.

Fixes #136
2020-10-20 07:44:21 +02:00
sunshaoce
c9f8eb70fd book: improve NULL example (#133) 2020-10-03 09:27:14 +02:00
changdingfang
518c6e97d7 book: typos fix in ch07-thread (#118)
revise the code to make sure it consistent with the book description
2020-08-28 17:24:05 +02:00
TinyWang
4de9eb49f7 book: use curly brackets to initailize aggregate objects (#112) 2020-08-10 10:00:08 +02:00
Changkun Ou
a5d1563609 book: fix a chunk of english typos
Fixes #87
2020-03-15 15:30:48 +01:00
Christoph Dibak
8767bb89c4 book: english typo (#79) 2019-09-20 15:06:54 +02:00
Changkun Ou
b12e03e82d book: translate ch02
Update #12
2019-07-20 13:35:51 +02:00
Changkun Ou
6238d66b11 book: translate ch03
see #12
2019-07-20 12:06:37 +02:00
Changkun Ou
7776a59e97 book: translation of ch04
Update #12
2019-07-19 19:17:16 +02:00
Changkun Ou
bf6b09253b book: translation of ch05
Update #12
2019-07-19 18:34:41 +02:00
Changkun Ou
f8a2979da7 code: update head comments 2019-07-19 18:33:06 +02:00
Changkun Ou
84813a0317 book: translation of ch07
Update #12
2019-07-19 17:31:54 +02:00
Changkun Ou
115827f98c book: add memory alignment alignof and alignas
see #2
2019-07-19 12:00:46 +02:00
Changkun Ou
677f74b691 book: revision of ch07 & finish atomics
Update #2
2019-07-19 11:03:27 +02:00
Changkun Ou
6062a58161 see #2: update std::atomic and memory model 2019-07-18 17:22:23 +02:00
Changkun Ou
5e9c33002a see #2: add atomic 2019-07-16 18:33:43 +02:00
Changkun Ou
5aff35b0f7 see #2: revision of parallelism and concurrency 2019-07-16 14:38:40 +02:00
Changkun Ou
507f8b9673 see #12: translate ch06 2019-07-16 09:32:56 +02:00
Changkun Ou
54ad935875 see #2: code updates 2019-07-16 09:26:31 +02:00
Changkun Ou
9779283735 see #12: translate ch09 2019-07-14 23:10:07 +02:00
Changkun Ou
69e4c6243d see #1: concepts demo 2019-07-11 12:34:14 +02:00
Changkun Ou
7a4a605e0f see #2: add std::initializer_list for printf back 2019-07-11 11:22:53 +02:00
Changkun Ou
dd8cf90bbe see #2: move non-type template param auto to ch02 2019-07-11 11:07:10 +02:00
Changkun Ou
fb91f1584a update: move std::variant to container chapter 2019-07-10 10:18:23 +02:00
Changkun Ou
da193739ee see #12: translation of preface and chapter 01 2019-07-09 12:20:35 +02:00
Changkun Ou
5c37806f62 update: more explaination on move proposal 2019-06-05 14:11:55 +02:00
junpeng
8604e6c03b fix: comments (#56)
修改注释 :引用的右值-->常量引用
2019-01-14 06:31:54 +01:00
Grace0926
d7e934a4d3 fix: value_2 typo error in section 3.1 (#37) 2018-08-15 18:38:28 +02:00
卖码翁
a548ea79bd Print out the stored_value1 and stored_value2 for the lambda example. (#36)
* Fix compilation error for structured binding

The header  <tuple> is missing. After adding it, it compiles fine with clang in c++17 mode.

* Print out the stored_value1 and stored_value2 for the lambda example.

To make it eaiser for the readers to understand the difference
between lambda capture by value and by reference.
2018-06-23 09:24:10 +02:00
卖码翁
e80a7120ef fix: compilation error for structured binding (#35)
The header  <tuple> is missing. After adding it, it compiles fine with clang in c++17 mode.
2018-06-13 13:51:35 +02:00
Changkun Ou
2e63a68751 resolve #17, fix wrong description and example for constexpr 2018-04-19 09:48:44 +02:00
jkandpm
ec3e0e65ba fix: potential endless loop (#22)
* fix potential endless loop

* update code as well
2018-04-18 15:02:50 +02:00
Changkun Ou
cc294b211c revision #2: 检阅部分模板相关内容 2018-04-09 14:48:19 +02:00
Changkun Ou
02a1105512 revision #2: 修改文件名 2018-04-09 14:47:43 +02:00
Changkun Ou
838d30ef5a revision #1: 更新第二章中已维护的代码 2018-04-02 00:28:05 +02:00
Changkun Ou
888f8d0794 revision: #2: 增加随书代码说明 2018-03-30 14:39:30 +02:00
Changkun Ou
51282838f8 revision #1: 第 1 章增加了对 C++17 的支持 2018-03-30 14:18:50 +02:00
Changkun Ou
b29361166f revision #2: 统一修改代码注释 2018-03-30 08:14:35 +02:00
Changkun Ou
71025d8bc6 prepare for c++17 2018-03-26 09:08:36 +02:00