summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-03-03 10:00:26 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-03-03 10:04:06 +0100
commite99372da50a06aaf1cf56173244c9266ac6f5ce2 (patch)
treefc47259241916095cff298d5a992d8688b13f61b
parent90e6f7216c644200e5dac0ba5624189ac4c3f294 (diff)
downloadsigc++-e99372da50a06aaf1cf56173244c9266ac6f5ce2.tar.gz
adaptor_functor: Do some perfect forwarding.
-rw-r--r--sigc++/adaptors/adaptor_trait.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sigc++/adaptors/adaptor_trait.h b/sigc++/adaptors/adaptor_trait.h
index 9c20d0c..aadf7e8 100644
--- a/sigc++/adaptors/adaptor_trait.h
+++ b/sigc++/adaptors/adaptor_trait.h
@@ -92,8 +92,8 @@ struct adaptor_functor : public adaptor_base
*/
template <class... T_arg>
decltype(auto)
- operator()(T_arg... _A_arg) const
- { return functor_(_A_arg...); }
+ operator()(T_arg&&... _A_arg) const
+ { return functor_(std::forward<T_arg>(_A_arg)...); }
/// Constructs an invalid functor.
adaptor_functor()