[all-commits] [llvm/llvm-project] 30213e: [libc++] Use enable_if_t to constrain make_unique{...
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Sun Nov 3 03:17:17 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 30213e99b86a078c9d472264c7edeea9aa638dd4
https://github.com/llvm/llvm-project/commit/30213e99b86a078c9d472264c7edeea9aa638dd4
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2024-11-03 (Sun, 03 Nov 2024)
Changed paths:
M libcxx/include/__memory/shared_ptr.h
M libcxx/include/__memory/uninitialized_algorithms.h
M libcxx/include/__memory/unique_ptr.h
M libcxx/include/__type_traits/is_bounded_array.h
M libcxx/include/__type_traits/is_unbounded_array.h
Log Message:
-----------
[libc++] Use enable_if_t to constrain make_unique{,_for_overwrite} (#95044)
This improves the diagnostics a bit by using `enable_if_t` which clang
is aware of, instead of a custom SFINAE class, as well as writing the
functions in a more canonical style.
As a drive-by this also makes `__is_{,un}bounded_array` variable
templates instead of class templates.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list