Skip to content

Commit cf391a1

Browse files
committed
sigc::tuple_transform_each: std::result_of -> std::invoke_result
std::result_of is deprecated in C++17 and will be removed in C++20. Fixes issue #19
1 parent 1a60bb7 commit cf391a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sigc++/tuple-utils/tuple_transform_each.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ struct tuple_transform_each_impl {
4545
static_assert(index >= 0, "unexpected index.");
4646

4747
using from_element_type = typename std::tuple_element<index, std::decay_t<T_original>>::type;
48-
using to_element_type = typename std::result_of<decltype (
49-
&T_transformer<from_element_type>::transform)(from_element_type&)>::type;
48+
using to_element_type = typename std::invoke_result<decltype (
49+
&T_transformer<from_element_type>::transform), from_element_type&>::type;
5050
const auto t_element =
5151
std::tuple<to_element_type>(T_transformer<from_element_type>::transform(std::get<index>(t_original)));
5252

0 commit comments

Comments
 (0)