gcc/libstdc++-v3/include
Jonathan Wakely fe918041ce libstdc++: Replace incorrect static assertion in std::reduce [PR95833]
The standard does not require the iterator's value type to be
convertible to the result type, it only requires that the result of
dereferencing the iterator can be passed to the binary function.

libstdc++-v3/ChangeLog:

	PR libstdc++/95833
	* include/std/numeric (reduce(Iter, Iter, T, BinaryOp)): Replace
	incorrect static_assert with ones matching the 'Mandates'
	conditions in the standard.
	* testsuite/26_numerics/reduce/95833.cc: New test.

(cherry picked from commit 0532452dcd)
2021-06-18 16:55:09 +01:00
..
backward
bits libstdc++: Simplify constexpr checks in std::char_traits [PR 91488] 2021-06-18 11:16:52 +01:00
c
c_compatibility
c_global libstdc++: Add nodiscard attribute to cast-like functions 2021-04-06 16:43:25 +01:00
c_std
debug libstdc++: Use __builtin_unreachable for constexpr assertions [PR 100676] 2021-06-02 14:43:20 +01:00
decimal libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
experimental libstdc++: Fix filesystem::path comparisons for C++23 2021-06-11 23:23:57 +01:00
ext libstdc++: Fix missing members in std::allocator<void> 2021-05-11 20:50:09 +01:00
parallel
precompiled libstdc++: Add support for C++20 barriers 2021-01-07 12:52:37 -08:00
pstl libstdc++: Fix up parallel_backend_serial.h [PR97549] 2021-02-23 09:28:14 +01:00
std libstdc++: Replace incorrect static assertion in std::reduce [PR95833] 2021-06-18 16:55:09 +01:00
tr1 libstdc++: Fix even more doxygen markup for group close commands 2021-04-09 13:09:23 +01:00
tr2 libstdc++: Fix doxygen markup for group close commands 2021-04-06 16:43:24 +01:00
Makefile.am libstdc++: Refactor/cleanup of C++20 atomic wait implementation 2021-04-20 15:27:02 +01:00
Makefile.in libstdc++: Refactor/cleanup of C++20 atomic wait implementation 2021-04-20 15:27:02 +01:00