aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorMichael Levine <mlevine55@bloomberg.net>2024-06-07 09:54:38 +0100
committerJonathan Wakely <jwakely@redhat.com>2024-06-08 15:51:40 +0100
commit0bb1db32ccf54a9de59bea718f7575f7ef22abf5 (patch)
tree25804a34ef04dffa28b5e3e578f26039e53ad9bc /libstdc++-v3/testsuite
parent77e84dc4e4e60ec5e7d6d1124e226452aa558108 (diff)
downloadgcc-0bb1db32ccf54a9de59bea718f7575f7ef22abf5.zip
gcc-0bb1db32ccf54a9de59bea718f7575f7ef22abf5.tar.gz
gcc-0bb1db32ccf54a9de59bea718f7575f7ef22abf5.tar.bz2
libstdc++: Fix std::ranges::iota is not included in numeric [PR108760]
Before this patch, using std::ranges::iota required including <algorithm> when it should have been sufficient to only include <numeric>. libstdc++-v3/ChangeLog: PR libstdc++/108760 * include/bits/ranges_algo.h (ranges::out_value_result): Move to <bits/ranges_algobase.h>. (ranges::iota_result, ranges::__iota_fn, ranges::iota): Move to <numeric>. * include/bits/ranges_algobase.h (ranges::out_value_result): Move to here. * include/std/numeric (ranges::iota_result, ranges::__iota_fn) (ranges::iota): Move to here. * testsuite/25_algorithms/iota/1.cc: Renamed to ... * testsuite/26_numerics/iota/2.cc: ... here. Signed-off-by: Michael Levine <mlevine55@bloomberg.net>
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/26_numerics/iota/2.cc (renamed from libstdc++-v3/testsuite/25_algorithms/iota/1.cc)2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/25_algorithms/iota/1.cc b/libstdc++-v3/testsuite/26_numerics/iota/2.cc
index 61bf418..040c48d9 100644
--- a/libstdc++-v3/testsuite/25_algorithms/iota/1.cc
+++ b/libstdc++-v3/testsuite/26_numerics/iota/2.cc
@@ -1,6 +1,6 @@
// { dg-do run { target c++23 } }
-#include <algorithm>
+#include <numeric>
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>