aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorFrançois Dumont <frs.dumont@gmail.com>2025-03-19 19:10:48 +0100
committerFrançois Dumont <fdumont@gcc.gnu.org>2025-03-19 22:05:05 +0100
commite3b3290f7330a81176d3d5d7c77623cd6c4bc70c (patch)
tree337e8954c66210126fae6aa9d99fcf9c13abf45a /libstdc++-v3
parent562416d8131dc9eeb4a778e7ef476157dbd9afd2 (diff)
downloadgcc-e3b3290f7330a81176d3d5d7c77623cd6c4bc70c.zip
gcc-e3b3290f7330a81176d3d5d7c77623cd6c4bc70c.tar.gz
gcc-e3b3290f7330a81176d3d5d7c77623cd6c4bc70c.tar.bz2
libstdc++: Activate a __cpp_lib_ranges_to_container dependent test
Now that std::set has support for __cpp_lib_ranges_to_container we can activate a test using it in a fancy allocator pointer context. libstdc++-v3/ChangeLog * testsuite/23_containers/set/requirements/explicit_instantiation/alloc_ptr.cc: Activate the template member tests involving __cpp_lib_ranges_to_container support. Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/testsuite/23_containers/set/requirements/explicit_instantiation/alloc_ptr.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/set/requirements/explicit_instantiation/alloc_ptr.cc b/libstdc++-v3/testsuite/23_containers/set/requirements/explicit_instantiation/alloc_ptr.cc
index 4fa84a7..575d590 100644
--- a/libstdc++-v3/testsuite/23_containers/set/requirements/explicit_instantiation/alloc_ptr.cc
+++ b/libstdc++-v3/testsuite/23_containers/set/requirements/explicit_instantiation/alloc_ptr.cc
@@ -76,14 +76,12 @@ test_template_members(__gnu_test::input_container<short>& c)
s.merge(m1);
#endif
-#if 0
#ifdef __cpp_lib_ranges_to_container
short arr[2];
__gnu_test::test_input_range<short> r(arr);
std::set<int, std::less<int>, Allocator<int>> s2(std::from_range, r);
std::set<int, std::less<int>, Allocator<int>> s3(std::from_range, r,
Allocator<int>{});
- s2.insert_range(s2.begin(), r);
-#endif
+ s2.insert_range(r);
#endif
}