Skip to content

Commit 49f9140

Browse files
committed
fix: 単にCWG 2518が適用された環境という (#1257)
pointed by @yohhoy
1 parent 95a8299 commit 49f9140

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lang/cpp11/static_assert.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static_assert(定数式, 文字列リテラル);
2828
- この宣言は、名前空間スコープ、ブロックスコープ、メンバ宣言といった場所で記述できる
2929
- 定数式が真であると評価された場合は何も効果がない。定数式が偽であると評価された場合は、指定された文字列リテラルを含む診断メッセージがコンパイラによって問題報告される。ただし、基本ソース文字集合に含まれない文字集合は、診断メッセージに表示することはコンパイラに要求されない
3030
- `static_assert`宣言では、新たな型やオブジェクトは宣言しない。また、実行時にサイズや時間コストは発生しない
31-
- (C++23以降 or CWG 2518が適用された環境): template文(もしくは適切な特殊化や[C++17 constexpr if 文](/lang/cpp17/if_constexpr.md)の中の文)が実際にインスタンス化されるまで、`static_assert`文の宣言は遅延される。
31+
- (CWG 2518が適用された環境): template文(もしくは適切な特殊化や[C++17 constexpr if 文](/lang/cpp17/if_constexpr.md)の中の文)が実際にインスタンス化されるまで、`static_assert`文の宣言は遅延される。
3232
- [C++17 constexpr if 文](/lang/cpp17/if_constexpr.md)の解説を参照
3333

3434
##

lang/cpp17/if_constexpr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ int main()
164164
}
165165
```
166166
167-
### (C++23以降 or CWG 2518が適用された環境) `static_assert`文に関する例外
167+
### (CWG 2518が適用された環境) `static_assert`文に関する例外
168168
169169
上に述べたように、`constexpr if`文の中の文は廃棄文においても、非依存名の検証を行う。このため特に`static_assert`文を使う時に直感的ではない挙動を示していた。
170170

0 commit comments

Comments
 (0)