diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-01-08 15:52:02 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-03-01 22:20:59 +0100 |
commit | 0dbc9bda80d22179976304c3dd0ad1a8cfa33fd8 (patch) | |
tree | 222284b921478511d062593220368f65c02f44b5 | |
parent | 488021e484b9fadff97aa81241278c2be5e1b066 (diff) | |
download | sigc++-0dbc9bda80d22179976304c3dd0ad1a8cfa33fd8.tar.gz |
bind(): Move T_functor the start.
This is different to the bind<number, ...> version but it's the only
way to have a parameter pack at the end.
Hopefully this version of bind() never needs to be called for specific
template types.
-rw-r--r-- | sigc++/adaptors/macros/bind.h.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sigc++/adaptors/macros/bind.h.m4 b/sigc++/adaptors/macros/bind.h.m4 index 95701dd..c6ae2f3 100644 --- a/sigc++/adaptors/macros/bind.h.m4 +++ b/sigc++/adaptors/macros/bind.h.m4 @@ -188,7 +188,7 @@ FOR(1,$1,[ * * @ingroup bind */ -template <LIST(LOOP(class T_type%1, $1), class T_functor)> +template <LIST(class T_functor, LOOP(class T_type%1, $1))> inline decltype(auto) bind(const T_functor& _A_func, LOOP(T_type%1 _A_b%1, $1)) { return bind_functor<-1, T_functor,dnl |