[gcc(refs/users/ppalka/heads/libstdcxx-constrained-algos)] Uglify a stray template parameter and remove unused headers
Patrick Palka
ppalka@gcc.gnu.org
Thu Jan 23 18:51:00 GMT 2020
https://gcc.gnu.org/g:b2baba673aea662127326fab424650aec1b41701
commit b2baba673aea662127326fab424650aec1b41701
Author: Patrick Palka <ppalka@redhat.com>
Date: Thu Jan 23 13:50:16 2020 -0500
Uglify a stray template parameter and remove unused headers
Diff:
---
libstdc++-v3/include/bits/ranges_algo.h | 8 ++++----
libstdc++-v3/testsuite/25_algorithms/reverse/constrained.cc | 1 -
libstdc++-v3/testsuite/25_algorithms/unique_copy/constrained.cc | 1 -
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/libstdc++-v3/include/bits/ranges_algo.h b/libstdc++-v3/include/bits/ranges_algo.h
index bd5c583..885dd5e 100644
--- a/libstdc++-v3/include/bits/ranges_algo.h
+++ b/libstdc++-v3/include/bits/ranges_algo.h
@@ -1910,10 +1910,10 @@ namespace ranges
}
}
- template<forward_range R>
- requires permutable<iterator_t<R>>
- constexpr safe_subrange_t<R>
- rotate(R&& __r, iterator_t<R> __middle)
+ template<forward_range _Range>
+ requires permutable<iterator_t<_Range>>
+ constexpr safe_subrange_t<_Range>
+ rotate(_Range&& __r, iterator_t<_Range> __middle)
{
return ranges::rotate(ranges::begin(__r),
std::move(__middle),
diff --git a/libstdc++-v3/testsuite/25_algorithms/reverse/constrained.cc b/libstdc++-v3/testsuite/25_algorithms/reverse/constrained.cc
index da1bbc6..58cec27 100644
--- a/libstdc++-v3/testsuite/25_algorithms/reverse/constrained.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/reverse/constrained.cc
@@ -18,7 +18,6 @@
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
-#include <list>
#include <algorithm>
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
diff --git a/libstdc++-v3/testsuite/25_algorithms/unique_copy/constrained.cc b/libstdc++-v3/testsuite/25_algorithms/unique_copy/constrained.cc
index 2df0c85..bf16cdc 100644
--- a/libstdc++-v3/testsuite/25_algorithms/unique_copy/constrained.cc
+++ b/libstdc++-v3/testsuite/25_algorithms/unique_copy/constrained.cc
@@ -18,7 +18,6 @@
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
-#include <list>
#include <algorithm>
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
More information about the Libstdc++-cvs
mailing list