Skip to content

[libc++][ranges] Reject non-class types in ranges::to #135802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 24, 2025
Prev Previous commit
Next Next commit
remove trailing spaces
Co-authored-by: A. Jiang <de34@live.cn>
  • Loading branch information
Yuzhiy05 and frederick-vs-ja authored Apr 21, 2025
commit 10c5fa46ea206752d4629d38b510cd9a7e43bb9c
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ void test() {
(void)std::ranges::to<color>(
R{}); //expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
(void)(R{} | std::ranges::to<
color>()); //expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
color>()); //expected-error-re@*:* {{static assertion failed{{.*}}The target must be a class type}}
}
Loading