Skip to content

Commit

Permalink
128 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghenshui authored Aug 25, 2023
1 parent 9963be1 commit c9af13e
Show file tree
Hide file tree
Showing 3 changed files with 378 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RSS使用仓库的release RSS [链接](https://github.com/wanghenshui/cppweeklyn

## 2023

| [121](./posts/121.md) | [122](./posts/122.md) | [123](./posts/123.md) | [124](./posts/124.md) | [125](./posts/125.md) | [126](./posts/126.md) | [127](./posts/127.md) | | | |
| [121](./posts/121.md) | [122](./posts/122.md) | [123](./posts/123.md) | [124](./posts/124.md) | [125](./posts/125.md) | [126](./posts/126.md) | [127](./posts/127.md) | [128](./posts/128.md) | | |
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
| [111](./posts/111.md) | [112](./posts/112.md) | [113](./posts/113.md) | [114](./posts/114.md) | [115](./posts/115.md) | [116](./posts/116.md) | [117](./posts/117.md) | [118](./posts/118.md) | [119](./posts/119.md) | [120](./posts/120.md) |
| [101](./posts/101.md) | [102](./posts/102.md) | [103](./posts/103.md) | [104](./posts/104.md) | [105](./posts/105.md) | [106](./posts/106.md) | [107](./posts/107.md) | [108](./posts/108.md) | [109](./posts/109.md) | [110](./posts/110.md) |
Expand Down Expand Up @@ -60,7 +60,7 @@ RSS使用仓库的release RSS [链接](https://github.com/wanghenshui/cppweeklyn
- 杨杰
- 阿刚
- MSK
- 不语 x16
- 不语 x17
- ywp
- 范天泷
- 罗盛波
Expand All @@ -70,4 +70,5 @@ RSS使用仓库的release RSS [链接](https://github.com/wanghenshui/cppweeklyn
- GYXL
- Concept Matrixtang
- chenbh
- 振羽
- 振羽
- 汪总
3 changes: 3 additions & 0 deletions posts/126.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ consteval auto as_constant(auto value) {
return value;
}
constexpr int Calc(int x) { return 4 * x; }
//consteval int Calc(int x) { return 4 * x; }
int main() {
auto res = Calc(2);
// auto res = as_constant(Calc(2));
Expand All @@ -387,6 +388,8 @@ int main() {

如果改成as_constant就能编译过。as_constant看起来傻逼,但是强制编译期计算了

之前代码抄错 [#68](https://github.com/wanghenshui/cppweeklynews/issues/68) @fanenr 指正,这里表示感谢



#### [Making your own array](https://muit.xyz/posts/making-your-own-array/)
Expand Down
Loading

0 comments on commit c9af13e

Please sign in to comment.