Skip to content

Commit 12dd49b

Browse files
committed
retype_return: Remove unnecessary overloads.
1 parent 12c3add commit 12dd49b

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

sigc++/adaptors/retype_return.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ namespace sigc
3636
template <typename T_return, typename T_functor>
3737
struct retype_return_functor : public adapts<T_functor>
3838
{
39-
T_return operator()();
40-
4139
template <typename... T_arg>
4240
inline T_return operator()(T_arg&&... a)
4341
{
@@ -56,13 +54,6 @@ struct retype_return_functor : public adapts<T_functor>
5654
}
5755
};
5856

59-
template <typename T_return, typename T_functor>
60-
T_return
61-
retype_return_functor<T_return, T_functor>::operator()()
62-
{
63-
return T_return(std::invoke(this->functor_));
64-
}
65-
6657
/** Adaptor that performs a C-style cast on the return value of a functor.
6758
* This template specialization is for a void return. It drops the return value of the functor it
6859
* invokes.
@@ -76,8 +67,6 @@ retype_return_functor<T_return, T_functor>::operator()()
7667
template <typename T_functor>
7768
struct retype_return_functor<void, T_functor> : public adapts<T_functor>
7869
{
79-
void operator()();
80-
8170
template <typename... T_arg>
8271
inline void operator()(T_arg... a)
8372
{
@@ -88,13 +77,6 @@ struct retype_return_functor<void, T_functor> : public adapts<T_functor>
8877
retype_return_functor(type_trait_take_t<T_functor> functor) : adapts<T_functor>(functor) {}
8978
};
9079

91-
template <typename T_functor>
92-
void
93-
retype_return_functor<void, T_functor>::operator()()
94-
{
95-
std::invoke(this->functor_);
96-
}
97-
9880
#ifndef DOXYGEN_SHOULD_SKIP_THIS
9981
// template specialization of visitor<>::do_visit_each<>(action, functor):
10082
/** Performs a functor on each of the targets of a functor.

0 commit comments

Comments
 (0)