You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
- Writing `STATIC_ASSERT(cond, str)` means that `str` has to be formatted either
as a separate variable or inline in the call.
Solution:
- Allow `STATIC_ASSERT(cond, fmt_str, args...)` where the string is formatted
automatically.
Notes:
- Each argument must still be wrapped in `CX_VALUE`. Because there is no
generic equivalent of `transform` for `__VA_ARGS__`.
- A bug in clang (for which a workaround is in place) was discovered:
llvm/llvm-project#114234
- `CX_VALUE` has been made more workable with GCC. GCC did not allow the
`struct` definition inside the macro.
0 commit comments