[libsigcplusplus/variadic_mem_fun3: 89/148] retype_return_functor: Do some perfect forwarding.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus/variadic_mem_fun3: 89/148] retype_return_functor: Do some perfect forwarding.
- Date: Mon, 7 Mar 2016 10:05:17 +0000 (UTC)
commit 4f179e5a045cc4a54ae337c133fefdee3f323e1f
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Mar 3 10:03:42 2016 +0100
retype_return_functor: Do some perfect forwarding.
sigc++/adaptors/retype_return.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sigc++/adaptors/retype_return.h b/sigc++/adaptors/retype_return.h
index 56c0ac5..e01a00a 100644
--- a/sigc++/adaptors/retype_return.h
+++ b/sigc++/adaptors/retype_return.h
@@ -22,9 +22,9 @@ struct retype_return_functor : public adapts<T_functor>
template <class... T_arg>
- inline T_return operator()(T_arg... _A_a)
+ inline T_return operator()(T_arg&&... _A_a)
{ return T_return(this->functor_.SIGC_WORKAROUND_OPERATOR_PARENTHESES<T_arg...>
- (_A_a...));
+ (std::forward<T_arg>(_A_a)...));
}
retype_return_functor() {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]