mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-11 18:25:03 +00:00
Xcode 15 betas 1-3 lack https://reviews.llvm.org/D135772, which fixes a bug that causes trailing `requires` clauses to be evaluated twice, failing the second time. Reported as FB12284201. This caused compile errors when instantiating types derived from RefPtr: > error: invalid reference to function 'NonnullRefPtr': constraints not > satisfied > note: because substituted constraint expression is ill-formed: value > of type '<dependent type>' is not contextually convertible to 'bool'. This commit works around the issue by moving the `requires` clauses after the template parameter list. In most cases, trailing `requires` clauses and those specified after the template parameter list work identically, so this change should not impact the code's behavior. The only difference is that trailing requires clauses are evaluated *after* constrained placeholder types (i.e. `Integral auto i` function parameter).
7.1 KiB
7.1 KiB