Bug 310786

Summary: WTF::holdsAlternative<Variant<Ts...>>: Index-based overload uses nonexistent API
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web Template FrameworkAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Chris Dumez
Reported 2026-03-26 00:44:07 PDT
std::holds_alternative<T> only takes a type parameter. There is no std::holds_alternative<size_t I> overload in the standard. This would fail to compile if instantiated.
Attachments
Chris Dumez
Comment 1 2026-03-26 00:45:20 PDT
EWS
Comment 2 2026-03-26 15:27:24 PDT
Committed 310029@main (ab0c60065686): <https://commits.webkit.org/310029@main> Reviewed commits have been landed. Closing PR #61392 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-03-26 15:28:13 PDT
Note You need to log in before you can comment on or make changes to this bug.