Commit 9363f12
committed
include/ceph_assert: introduce consteval_assert
`throw` in C++20's `consteval` function results in an ill-formed
program. Useful as parameters of such functions aren't const-
expressions, and thus are unsuitable for `static_assert`.
Signed-off-by: Radoslaw Zarzynski <[email protected]>1 parent 4dd7f48 commit 9363f12
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
147 | 153 | | |
0 commit comments