Commit fa84888
committed
AST: address-of function is not compile-time
This fixes a `static_assert` by converting it to an `assert`. The
address-of on a function is not a compile time constant and can only be
checked at runtime. This will reduce the check to !NDEBUG builds only
but actually performs the intended check.1 parent ba149d9 commit fa84888
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
| 202 | + | |
| 203 | + | |
205 | 204 | | |
206 | 205 | | |
207 | 206 | | |
| |||
0 commit comments