Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ab0c6006568636d451a2fe41793512a662245767
      
https://github.com/WebKit/WebKit/commit/ab0c6006568636d451a2fe41793512a662245767
  Author: Chris Dumez <[email protected]>
  Date:   2026-03-26 (Thu, 26 Mar 2026)

  Changed paths:
    M Source/WTF/wtf/StdLibExtras.h
    M Tools/TestWebKitAPI/Tests/WTF/StdLibExtrasTests.cpp

  Log Message:
  -----------
  WTF::holdsAlternative<Variant<Ts...>>: Index-based overload uses nonexistent 
API
https://bugs.webkit.org/show_bug.cgi?id=310786

Reviewed by Sam Weinig and Ryosuke Niwa.

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.

Test: Tools/TestWebKitAPI/Tests/WTF/StdLibExtrasTests.cpp

* Source/WTF/wtf/StdLibExtras.h:
* Tools/TestWebKitAPI/Tests/WTF/StdLibExtrasTests.cpp:
(TestWebKitAPI::TEST(WTF_StdLibExtras, HoldsAlternativeByIndex)):
(TestWebKitAPI::TEST(WTF_StdLibExtras, HoldsAlternativeByType)):

Canonical link: https://commits.webkit.org/310029@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to