Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 140ec9c4a1ace8b9717b5f13d6e03c91c07b8b1c
https://github.com/WebKit/WebKit/commit/140ec9c4a1ace8b9717b5f13d6e03c91c07b8b1c
Author: Fady Farag <[email protected]>
Date: 2026-08-24 (Mon, 24 Aug 2026)
Changed paths:
M Source/WTF/wtf/CheckedPtr.h
M Source/WTF/wtf/CheckedRef.h
M Source/WTF/wtf/CrossThreadTask.h
M Source/WTF/wtf/Ref.h
M Source/WTF/wtf/RefCountable.h
M Source/WTF/wtf/RunLoop.h
M Source/WTF/wtf/StdLibExtras.h
M Source/WTF/wtf/TypeTraits.h
M Source/WTF/wtf/UniqueRef.h
M Source/WTF/wtf/WeakHashSet.h
M Source/WTF/wtf/WeakPtr.h
M Source/WTF/wtf/WeakRef.h
M Source/WebCore/platform/Timer.h
Log Message:
-----------
Use C++20 Concepts in `wtf/TypeTraits.h`
https://bugs.webkit.org/show_bug.cgi?id=322339
rdar://185601516
Reviewed by Darin Adler.
This drops the pre-C++20 overload-resolution SFINAE
detection idiom in favor of modern C++ language features.
No new tests since there should be no behavioral changes.
* Source/WTF/wtf/CheckedPtr.h:
* Source/WTF/wtf/CheckedRef.h:
* Source/WTF/wtf/CrossThreadTask.h:
* Source/WTF/wtf/Ref.h:
* Source/WTF/wtf/RefCountable.h:
(WTF::RefCountable::create):
(WTF::RefCountable::RefCountable):
* Source/WTF/wtf/RunLoop.h:
* Source/WTF/wtf/StdLibExtras.h:
(WTF::makeUnique):
(WTF::makeUniqueWithoutFastMallocCheck):
* Source/WTF/wtf/TypeTraits.h:
(WTF::requires):
* Source/WTF/wtf/UniqueRef.h:
(WTF::makeUniqueRef):
* Source/WTF/wtf/WeakHashSet.h:
* Source/WTF/wtf/WeakPtr.h:
(WTF::WeakPtr::ptrAllowingHashTableEmptyValue const):
(WTF::WeakPtr::get const):
(WTF::WeakPtr::operator-> const):
(WTF::WeakPtr::operator* const):
* Source/WTF/wtf/WeakRef.h:
(WTF::WeakRef::ptrAllowingHashTableEmptyValue const):
(WTF::WeakRef::ptr const):
(WTF::WeakRef::get const):
* Source/WebCore/platform/Timer.h:
Canonical link: https://commits.webkit.org/319707@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications