diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-03-03 10:03:42 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-03-03 10:04:06 +0100 |
commit | 90e6f7216c644200e5dac0ba5624189ac4c3f294 (patch) | |
tree | 5c775175595f38c0afc62d049fe3de7cb8d01256 | |
parent | 812c07d47493ef84cec8bf95f2ba91e934997cca (diff) | |
download | sigc++-90e6f7216c644200e5dac0ba5624189ac4c3f294.tar.gz |
retype_return_functor: Do some perfect forwarding.
-rw-r--r-- | 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() {} |