[gcc(refs/users/marxin/heads/marxin-gcc-benchmark-branch)] libstdc++: Remove extraneous &&

Martin Liska marxin@gcc.gnu.org
Mon Mar 30 10:52:54 GMT 2020


https://gcc.gnu.org/g:a04f635d1e4df9679caf763f744eb41a938468f4

commit a04f635d1e4df9679caf763f744eb41a938468f4
Author: Patrick Palka <ppalka@redhat.com>
Date:   Fri Feb 7 10:08:06 2020 -0500

    libstdc++: Remove extraneous &&

Diff:
---
 libstdc++-v3/ChangeLog                  | 2 ++
 libstdc++-v3/include/bits/ranges_algo.h | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 4e010016a03..946897dda99 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,7 @@
 2020-02-07  Patrick Palka  <ppalka@redhat.com>
 
+	* include/bits/ranges_algo.h: Remove extraneous &&.
+
 	* include/std/ranges (ranges::__detail::__stream_extractable,
 	ranges::basic_istream_view, ranges::istream_view): Define.
 	* testsuite/std/ranges/istream_view: New test.
diff --git a/libstdc++-v3/include/bits/ranges_algo.h b/libstdc++-v3/include/bits/ranges_algo.h
index a9b87283f87..927c83c55b7 100644
--- a/libstdc++-v3/include/bits/ranges_algo.h
+++ b/libstdc++-v3/include/bits/ranges_algo.h
@@ -1250,7 +1250,7 @@ namespace ranges
       [[no_unique_address]] _Out  out;
 
       template<typename _IIter1, typename _IIter2, typename _OOut>
-	requires convertible_to<const _Iter1&, _IIter1> &&
+	requires convertible_to<const _Iter1&, _IIter1>
 	  && convertible_to<const _Iter2&, _IIter2>
 	  && convertible_to<const _Out&, _OOut>
 	operator binary_transform_result<_IIter1, _IIter2, _OOut>() const &


More information about the Libstdc++-cvs mailing list