Skip to content

Commit

Permalink
追記と打ち消し線修正
Browse files Browse the repository at this point in the history
  • Loading branch information
onihusube committed Jun 8, 2023
1 parent 2e52939 commit 13db5df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lang/cpp20/deprecating_volatile.md
Expand Up @@ -7,7 +7,7 @@ C++20より、`volatile`の本来の役割に照らして不正確、あるい

非推奨となるのは次のもの

1. ~~`volatile`値に対する複合代入演算子(算術型・ポインタ型のみ)~~
1. ~`volatile`値に対する複合代入演算子(算術型・ポインタ型のみ)~
2. `volatile`値に対するインクリメント/デクリメント演算子(算術型・ポインタ型のみ)
3. 間に`volatile`値がある場合の連鎖した代入演算子(非クラス型のみ)
4. 関数引数のトップレベル`volatile`修飾
Expand Down Expand Up @@ -311,7 +311,7 @@ volatile int i;

// iの領域へ何回のアクセスが発生するか不透明
// これはどちらも非推奨化
i += 42;
i += 42; // C++23で非推奨化解除
++i;
```

Expand Down Expand Up @@ -380,4 +380,4 @@ volatile device dev;
- [P1831R0 Deprecating `volatile`: library](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1831r0.html)
- [P1831R0 Deprecating `volatile`: library](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1831r1.html)
- [P2327R0 De-deprecating volatile compound assignment](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2327r1.pdf)
- [CWG Issue 2654. Un-deprecation of compound volatile assignments](https://cplusplus.github.io/CWG/issues/2654.html)
- [CWG Issue 2654. Un-deprecation of compound volatile assignments](https://cplusplus.github.io/CWG/issues/2654.html)

0 comments on commit 13db5df

Please sign in to comment.