gcc/libstdc++-v3/testsuite/std
Patrick Palka f0d8d001d9 libstdc++: Non-triv-copyable extra args aren't simple [PR100940]
This force-enables perfect forwarding call wrapper semantics whenever
the extra arguments of a partially applied range adaptor aren't all
trivially copyable, so as to avoid incurring unnecessary copies of
potentially expensive-to-copy objects (such as std::function objects)
when invoking the adaptor.

	PR libstdc++/100940

libstdc++-v3/ChangeLog:

	* include/std/ranges (__adaptor::_Partial): For the "simple"
	forwarding partial specializations, also require that
	the extra arguments are trivially copyable.
	* testsuite/std/ranges/adaptors/100577.cc (test04): New test.

(cherry picked from commit 2b87f3318c)
2021-06-17 22:55:34 -04:00
..
concepts Update copyright years. 2021-01-04 10:26:59 +01:00
ranges libstdc++: Non-triv-copyable extra args aren't simple [PR100940] 2021-06-17 22:55:34 -04:00
time libstdc++: Uncomment more parts of <chrono> synopsis test 2021-03-10 11:14:27 +00:00