Skip to content

Commit 56695bc

Browse files
committed
fix: static_assertは文じゃなくて宣言
ref: - #1260 (comment)
1 parent 828812e commit 56695bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lang/cpp17/if_constexpr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ int main()
9292
}
9393
```
9494

95-
### `static_assert`文に関する例外
95+
### `static_assert`宣言に関する例外
9696

9797
後に述べる2段階名前探索に関する注意点とは関係なく、C++23以降、もしくはCWG 2518が適用された環境においては、template文(もしくは適切な特殊化や`constexpr if`文の中の文)が実際にインスタンス化されない限り、`static_assert`宣言による失敗は無視される。
9898

0 commit comments

Comments
 (0)