aboutsummaryrefslogtreecommitdiff
path: root/gcc/data-streamer-in.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-02-27 15:48:49 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2025-02-28 21:35:27 +0000
commita9cfcd0d9e3780c71442057f636f62a7142056cb (patch)
treeb13387bfe5e24eb20c0484766beffb37825e52dd /gcc/data-streamer-in.cc
parentf7bc17ebc9ef89700672ed7125da719f3558f3b7 (diff)
downloadgcc-a9cfcd0d9e3780c71442057f636f62a7142056cb.zip
gcc-a9cfcd0d9e3780c71442057f636f62a7142056cb.tar.gz
gcc-a9cfcd0d9e3780c71442057f636f62a7142056cb.tar.bz2
libstdc++: Add static_assertions to ranges::to adaptor factory [PR112803]
The standard requires that we reject attempts to create a ranges::to adaptor for cv-qualified types and non-class types. Currently we only diagnose it once the adaptor is used in a pipeline. This adds static assertions to diagnose it immediately. libstdc++-v3/ChangeLog: PR libstdc++/112803 * include/std/ranges (ranges::to): Add static assertions to enforce Mandates conditions. * testsuite/std/ranges/conv/112803.cc: New test.
Diffstat (limited to 'gcc/data-streamer-in.cc')
0 files changed, 0 insertions, 0 deletions