[all-commits] [llvm/llvm-project] 03c286: [libc++][ranges] Reject non-class types in ranges:...
Yuzhiy via All-commits
all-commits at lists.llvm.org
Thu Apr 24 01:30:21 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 03c2862404a9ab19940f87f8fb2dbe01818ab439
https://github.com/llvm/llvm-project/commit/03c2862404a9ab19940f87f8fb2dbe01818ab439
Author: Yuzhiy <44502685+Yuzhiy05 at users.noreply.github.com>
Date: 2025-04-24 (Thu, 24 Apr 2025)
Changed paths:
M libcxx/include/__ranges/to.h
M libcxx/test/libcxx/ranges/range.utility/range.utility.conv/to.static_assert.verify.cpp
Log Message:
-----------
[libc++][ranges] Reject non-class types in ranges::to (#135802)
This patch adds `static_assert` using `is_class_v` and `is_union_v` to
reject no-class type template parameters.
Fixes #132133
---------
Co-authored-by: A. Jiang <de34 at live.cn>
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