[libsigc++2/variadic] bind(): Move T_functor the start.



commit e345bcf3a5a976c5ad28354c00f999ed33399566
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Jan 8 15:52:02 2016 +0100

    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.

 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 dcd3b4c..3e5d865 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]