[libsigc++2/variadic_bind2: 6/68] retype_functor: Make the slot version variadic.



commit 6ea5c9bc418fcb6afe89d236559f2e4563f0fb75
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Jan 7 22:00:38 2016 +0100

    retype_functor: Make the slot version variadic.

 sigc++/adaptors/macros/retype.h.m4 |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/sigc++/adaptors/macros/retype.h.m4 b/sigc++/adaptors/macros/retype.h.m4
index 0974a14..b35edfe 100644
--- a/sigc++/adaptors/macros/retype.h.m4
+++ b/sigc++/adaptors/macros/retype.h.m4
@@ -182,10 +182,10 @@ struct visitor<retype_functor<LIST(T_functor, LOOP(T_type%1, CALL_SIZE))> >
  *
  * @ingroup retype
  */
-template <LIST(class T_return, LOOP(class T_arg%1, CALL_SIZE))>
-inline retype_functor<LIST(slot<LIST(T_return, LOOP(T_arg%1, CALL_SIZE))>, LOOP(T_arg%1, CALL_SIZE)) >
-retype(const slot<LIST(T_return, LOOP(T_arg%1, CALL_SIZE))>& _A_functor)
-{ return retype_functor<LIST(slot<LIST(T_return, LOOP(T_arg%1, CALL_SIZE))>, LOOP(T_arg%1, CALL_SIZE)) >
+template <LIST(class T_return, class... T_arg)>
+inline retype_functor<slot<T_return, T_arg...>, T_arg...>
+retype(const slot<T_return, T_arg...>& _A_functor)
+{ return retype_functor<slot<T_return, T_arg...>, T_arg...>
     (_A_functor); }
 
 


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