gcc/libstdc++-v3/testsuite/20_util/bind
Jonathan Wakely 31ef58b18d libstdc++: Replace std::result_of with __invoke_result_t [PR114394]
Replace std::result_of with std::invoke_result, as specified in the
standard since C++17, to avoid deprecated warnings for std::result_of.

We don't have __invoke_result_t in C++11 mode, so add it as an alias
template for __invoke_result<>::type (which is what std::result_of uses
as its base class, so there's no change in functionality).

This fixes warnings given by Clang 18.

libstdc++-v3/ChangeLog:

	PR libstdc++/114394
	* include/std/functional (bind): Use __invoke_result_t instead
	of result_of::type.
	* include/std/type_traits (__invoke_result_t): New alias
	template.
	* testsuite/20_util/bind/ref_neg.cc: Adjust prune pattern.
2024-03-22 22:37:57 +00:00
..
35569.cc Update copyright years. 2024-01-03 12:19:35 +01:00
38889.cc Update copyright years. 2024-01-03 12:19:35 +01:00
42593.cc Update copyright years. 2024-01-03 12:19:35 +01:00
45924.cc Update copyright years. 2024-01-03 12:19:35 +01:00
48698.cc Update copyright years. 2024-01-03 12:19:35 +01:00
49058_1.cc Update copyright years. 2024-01-03 12:19:35 +01:00
49058_2.cc Update copyright years. 2024-01-03 12:19:35 +01:00
57899.cc Update copyright years. 2024-01-03 12:19:35 +01:00
60497.cc Update copyright years. 2024-01-03 12:19:35 +01:00
68912.cc Update copyright years. 2024-01-03 12:19:35 +01:00
79798.cc Update copyright years. 2024-01-03 12:19:35 +01:00
83427.cc Update copyright years. 2024-01-03 12:19:35 +01:00
91371.cc Update copyright years. 2024-01-03 12:19:35 +01:00
all_bound.cc Update copyright years. 2024-01-03 12:19:35 +01:00
constexpr.cc Update copyright years. 2024-01-03 12:19:35 +01:00
conv_result.cc Update copyright years. 2024-01-03 12:19:35 +01:00
cv_quals.cc Update copyright years. 2024-01-03 12:19:35 +01:00
cv_quals_2.cc Update copyright years. 2024-01-03 12:19:35 +01:00
cv_quals_3.cc Update copyright years. 2024-01-03 12:19:35 +01:00
dangling_ref.cc
is_placeholder_v.cc Update copyright years. 2024-01-03 12:19:35 +01:00
move.cc Update copyright years. 2024-01-03 12:19:35 +01:00
nested.cc Update copyright years. 2024-01-03 12:19:35 +01:00
placeholders.cc Update copyright years. 2024-01-03 12:19:35 +01:00
ref.cc Update copyright years. 2024-01-03 12:19:35 +01:00
ref2.cc Update copyright years. 2024-01-03 12:19:35 +01:00
ref_neg.cc libstdc++: Replace std::result_of with __invoke_result_t [PR114394] 2024-03-22 22:37:57 +00:00
refqual.cc Update copyright years. 2024-01-03 12:19:35 +01:00
socket.cc Update copyright years. 2024-01-03 12:19:35 +01:00